upstream: [media] omap3isp: ccdc: Don't hang when the SBL fails to become idle
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 9 Dec 2013 14:13:13 +0000 (11:13 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:24 +0000 (11:54 +0900)
commit0a7f2461cdb4fc8f111a6372bedfd9b5e0b35e21
tree338662597722bdd67b22656219fa9a7ca419066d
parent7e142a28554057b494c19bded2f97cb840fbe57f
upstream: [media] omap3isp: ccdc: Don't hang when the SBL fails to become idle

Under abnormal conditions (such as glitches on the HSYNC/VSYNC signals)
the CCDC output SBL can fail to become idle. The driver currently logs
this condition to the kernel log and doesn't restart the CCDC. This
results in CCDC video capture hanging without any notification to
userspace.

Cancel the pipeline and mark the CCDC as crashed instead of hanging.
Userspace will be notified of the problem and will then be able to close
and reopen the device to trigger a reset of the ISP.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/omap3isp/ispccdc.c