From: Yuxi Sun Date: Sat, 18 Aug 2012 06:43:26 +0000 (+0800) Subject: ENGR00220706 IPU Add more timeout when wait for the csi end of frame X-Git-Tag: v3.0.35-fsl~583 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=52e53cd4268731042ee90a3dcda22da1899bf2a7;p=karo-tx-linux.git 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 --- 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); }