[RESEND] [PATCH 2/3] [OMAPZOOM] OMAP3ISP: Fix Random System freeze on still capture

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

 



From: Pallavi Kulkarni <p-kulkarni@xxxxxx>

OMAP3ISP: Fix Random System freeze on still capture

This patch adds checks for busy state of the ISP backend
Submodules before proceeding with isp stopping sequence.

Signed-off-by: Pallavi Kulkarni <p-kulkarni@xxxxxx>
Signed-off-by: Sergio Aguirre <saaguirre@xxxxxx>
---
 drivers/media/video/isp/isp.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

Index: omapkernel/drivers/media/video/isp/isp.c
===================================================================
--- omapkernel.orig/drivers/media/video/isp/isp.c
+++ omapkernel/drivers/media/video/isp/isp.c
@@ -1258,7 +1258,19 @@ void isp_stop()
 	ispccdc_enable_lsc(0);
 	ispccdc_enable(0);
 	isppreview_enable(0);
+	while (isppreview_busy() && (timeout < 100)) {
+		timeout++;
+		mdelay(10);
+	}
+
+	timeout = 0;
 	ispresizer_enable(0);
+	while (ispresizer_busy() && (timeout < 100)) {
+		timeout++;
+		mdelay(10);
+	}
+
+	timeout = 0;
 	isp_save_ctx();
 	omap_writel(omap_readl(ISP_SYSCONFIG) |
 		ISP_SYSCONFIG_SOFTRESET, ISP_SYSCONFIG);

--
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