From: Sergio Aguirre <[EMAIL PROTECTED]>

OMAP: CAM: ISP: Check for CCDC busy on isp_stop

Wait also for CCDC pending operations (Like saving RAW frame to
memory)

Signed-off-by: Sergio Aguirre <[EMAIL PROTECTED]>
---
 drivers/media/video/isp/isp.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: git-ti-omap34tree/drivers/media/video/isp/isp.c
===================================================================
--- git-ti-omap34tree.orig/drivers/media/video/isp/isp.c
+++ git-ti-omap34tree/drivers/media/video/isp/isp.c
@@ -1257,6 +1257,12 @@ void isp_stop()
        omapisp_unset_callback();
        ispccdc_enable_lsc(0);
        ispccdc_enable(0);
+       while (ispccdc_busy() && (timeout < 100)) {
+               timeout++;
+               mdelay(10);
+       }
+
+       timeout = 0;
        isppreview_enable(0);
        while (isppreview_busy() && (timeout < 100)) {
                timeout++;
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to