On Tue, 23 Aug 2011, Venkatraman S wrote: > From: Venkatraman S <ven...@linaro.org> > > fiq interface as used by mx1 camera is suspicious, with the > definition of NR_IRQS to be 1024 in the only platform this is used > (OMAP). Set the stage for decoupling this from using the fiq interface. > > Signed-off-by: Venkatraman S <ven...@linaro.org>
Besides the usual <mach/irqs.h> issue, it would be ngood to post this patch on LAK and CC the imx maintainer(s) to request their comments. If this driver is still working, which it might not, then we need to understand why this offset is used. > --- > drivers/media/video/mx1_camera.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/video/mx1_camera.c > b/drivers/media/video/mx1_camera.c > index 63f8a0c..0465041 100644 > --- a/drivers/media/video/mx1_camera.c > +++ b/drivers/media/video/mx1_camera.c > @@ -45,6 +45,7 @@ > #include <mach/dma-mx1-mx2.h> > #include <mach/hardware.h> > #include <mach/mx1_camera.h> > +#include <mach/irqs.h> > > /* > * CSI registers > @@ -799,7 +800,7 @@ static int __init mx1_camera_probe(struct platform_device > *pdev) > set_fiq_regs(®s); > > mxc_set_irq_fiq(irq, 1); > - enable_fiq(irq); > + enable_irq(irq + FIQ_START); > > pcdev->soc_host.drv_name = DRIVER_NAME; > pcdev->soc_host.ops = &mx1_soc_camera_host_ops; > @@ -815,7 +816,7 @@ static int __init mx1_camera_probe(struct platform_device > *pdev) > return 0; > > exit_free_irq: > - disable_fiq(irq); > + disable_irq(irq + FIQ_START); > mxc_set_irq_fiq(irq, 0); > release_fiq(&fh); > exit_free_dma: > @@ -840,7 +841,7 @@ static int __exit mx1_camera_remove(struct > platform_device *pdev) > struct resource *res; > > imx_dma_free(pcdev->dma_chan); > - disable_fiq(pcdev->irq); > + disable_irq(pcdev->irq + FIQ_START); > mxc_set_irq_fiq(pcdev->irq, 0); > release_fiq(&fh); > > -- > 1.7.1 > _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev