MLK-12103 media: capture: ov5640_mipi: add more delay for camera to stay stable
authorRobby Cai <robby.cai@nxp.com>
Mon, 4 Jan 2016 09:20:02 +0000 (17:20 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:38 +0000 (14:49 -0500)
For power saving, the camera is set ON/OFF by 'PWDN' pin.
However, the DQBUF timeout problems have been observed occasionally when
do the resolution switch for the camera. The reason could be that the power
for the camera is set to off then on when do the switch, but the delay time
is not enough for camera to go stable. The patch sets it to an empirical
value and it has passed over 3-day stress test.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
drivers/media/platform/mxc/capture/ov5640_mipi.c

index ec813a6..0d146b5 100644 (file)
@@ -686,7 +686,7 @@ static void ov5640_standby(s32 enable)
        else
                gpio_set_value(pwn_gpio, 0);
 
-       msleep(2);
+       msleep(100);
 }
 
 static void ov5640_reset(void)