linux/drivers/staging/media
Laurent Pinchart 769161fd2d [media] media: omap4iss: csi2: Fix IRQ handling when stopping module
When stopping the CSI2 receiver the s_stream handler will wait for the
IRQ handler to notice the stop request. The receiver, automatically
disabled by the hardware after each frame, is then not reenabled by the
IRQ handler as it returns immediately.

As the IRQ handler check is performed before handling the context IRQ,
the context IRQ source isn't cleared, and the CSI2 IRQ is then fired
again immediately. The IRQ handler then fails to notice that the module
is being stopped, processes the IRQ normally and reenables the CSI2
hardware.

The problem goes unnoticed at stream stop time, but depending on the IRQ
and s_stream scheduling timings, the CSI2 receiver can end up being
hanged and will not produce any interrupt the next time it gets enabled,
despite being soft-reset then.

Fix this by checking for module stop after clearing the context IRQ
source.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-11-19 11:14:23 -02:00
..
bcm2048 [media] Staging: media: bcm2048: warnings for uninitialized variables fixed 2015-09-25 17:16:28 -03:00
cxd2099 staging: Remove <linux/moduleparam.h> header. 2015-03-01 17:09:52 -08:00
davinci_vpfe [media] staging: media: davinci_vpfe: fix ipipe_mode type 2015-11-17 14:27:28 -02:00
lirc media updates for v4.4-rc1 2015-11-05 12:05:15 -08:00
mn88472 [media] staging: media: Drop owner assignment from i2c_driver 2015-08-11 13:02:49 -03:00
mn88473 [media] staging: media: Drop owner assignment from i2c_driver 2015-08-11 13:02:49 -03:00
omap4iss [media] media: omap4iss: csi2: Fix IRQ handling when stopping module 2015-11-19 11:14:23 -02:00
Kconfig [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00
Makefile [media] dt3155: move out of staging into drivers/media/pci 2015-05-01 08:25:41 -03:00