From 52e53cd4268731042ee90a3dcda22da1899bf2a7 Mon Sep 17 00:00:00 2001 From: Yuxi Sun Date: Sat, 18 Aug 2012 14:43:26 +0800 Subject: [PATCH] ENGR00220706 IPU Add more timeout when wait for the csi end of frame If this timeout is too small, it can't meet the require of some large frame such as 2592x1944 and 1080p, and the IDMAC maybe in a chaotic state, so at last access some invalid space caused the system hang. Signed-off-by: Yuxi Sun --- drivers/mxc/ipu3/ipu_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/ipu3/ipu_capture.c b/drivers/mxc/ipu3/ipu_capture.c index c4eac45a6152..029ab5e9dec7 100644 --- a/drivers/mxc/ipu3/ipu_capture.c +++ b/drivers/mxc/ipu3/ipu_capture.c @@ -803,7 +803,7 @@ void _ipu_csi_wait4eof(struct ipu_soc *ipu, ipu_channel_t channel) dev_err(ipu->dev, "CSI irq %d in use\n", irq); return; } - ret = wait_for_completion_timeout(&ipu->csi_comp, msecs_to_jiffies(50)); + ret = wait_for_completion_timeout(&ipu->csi_comp, msecs_to_jiffies(500)); ipu_free_irq(ipu, irq, ipu); dev_dbg(ipu->dev, "CSI stop timeout - %d * 10ms\n", 5 - ret); } -- 2.39.5