]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 10:09:30 +0000 (08:09 -0200)
commitcf3a4dd358e44031af02fe81fbd088d33c4099ce
tree2135916beab375fc669d1540555d9cfbfd0d9f0f
parent79db4dfb9df11282b79fd1544a02669116e0b935
[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