]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
soc_camera: imx230 power on sleep
authorMihir Thakkar <mthakkar@nvidia.com>
Wed, 24 Feb 2016 21:46:02 +0000 (13:46 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sat, 12 Mar 2016 01:45:50 +0000 (17:45 -0800)
Change the power on sleep range to 1ms to fix random hangs while
running nvcamera_test. We need min of 1ms before first i2c
access. T6 event in the power up sequence in the reference manual

Bug 1726896
Bug 1726881

Change-Id: Ie7f8eb65a4d89776a541789afd6926fb0d4c139d
Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com>
Reviewed-on: http://git-master/r/1018322
(cherry picked from commit 7e6fb7254cf7bceb3723e73ca516e7f9b2352fc3)
Reviewed-on: http://git-master/r/1021490
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
drivers/media/i2c/soc_camera/imx230_v4l2.c

index f4b2b482414903d2fa286ad571f70cf53c423752..f96ad0e3af15f7aa918224ba251503a4747cff2d 100644 (file)
@@ -352,7 +352,7 @@ static int imx230_power_on(struct camera_common_data *s_data)
        if (pw->reset_gpio)
                gpio_set_value(pw->reset_gpio, 1);
 
-       usleep_range(300, 310);
+       usleep_range(1000, 1010);
 
        pw->state = SWITCH_ON;
        return 0;