]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00220706 IPU Add more timeout when wait for the csi end of frame
authorYuxi Sun <b36102@freescale.com>
Sat, 18 Aug 2012 06:43:26 +0000 (14:43 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:15 +0000 (08:35 +0200)
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 <b36102@freescale.com>
drivers/mxc/ipu3/ipu_capture.c

index c4eac45a61521f49755e6700507a84f30ca6f7d7..029ab5e9dec747c699b40cff7957c600e5319682 100644 (file)
@@ -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);
 }