On Tue, Jul 27, 2010 at 03:06:08PM +0300, Baruch Siach wrote:
> Signed-off-by: Baruch Siach <bar...@tkos.co.il>
> ---
>  drivers/media/video/mx2_camera.c |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/media/video/mx2_camera.c 
> b/drivers/media/video/mx2_camera.c
> index 1536bd4..b42ad8d 100644
> --- a/drivers/media/video/mx2_camera.c
> +++ b/drivers/media/video/mx2_camera.c
> @@ -420,15 +420,17 @@ static irqreturn_t mx25_camera_irq(int irq_csi, void 
> *data)
>       struct mx2_camera_dev *pcdev = data;
>       u32 status = readl(pcdev->base_csi + CSISR);
>  
> -     if (status & CSISR_DMA_TSF_FB1_INT)
> +     writel(status, pcdev->base_csi + CSISR);
> +
> +     if (!(status & (CSISR_DMA_TSF_FB1_INT | CSISR_DMA_TSF_FB2_INT)))
> +             return IRQ_NONE;

I'm not sure this is correct. When we get here, the interrupt definitely
is from the camera, it's not a shared interrupt. So this only provokes a
'nobody cared' message from the kernel (if it's still present, I don't
know).

Sascha


> +     else if (status & CSISR_DMA_TSF_FB1_INT)
>               mx25_camera_frame_done(pcdev, 1, VIDEOBUF_DONE);
>       else if (status & CSISR_DMA_TSF_FB2_INT)
>               mx25_camera_frame_done(pcdev, 2, VIDEOBUF_DONE);
>  
>       /* FIXME: handle CSISR_RFF_OR_INT */
>  
> -     writel(status, pcdev->base_csi + CSISR);
> -
>       return IRQ_HANDLED;
>  }
>  
> -- 
> 1.7.1
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to