[PATCH][OMAPZOOM] OMAP: CAM: ISP: Check for CCDC busy on isp_stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sergio Aguirre <saaguirre@xxxxxx>

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 <saaguirre@xxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux