[COMMON] fimc-is2: Optimized otp read flow path for 5e9
authorxff <fangfang.xu@samsung.com>
Tue, 16 Apr 2019 09:07:48 +0000 (17:07 +0800)
committerKim Gunho <gunho.kim@samsung.com>
Wed, 7 Aug 2019 13:00:08 +0000 (22:00 +0900)
Change-Id: I554d9560608b0f2b4069b6e8bd5a2b4dcab98c5b
Signed-off-by: xff <fangfang.xu@samsung.com>
drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c

index 9f4e414475e9ec6d808817c926c86a1b66fe0801..e545854121764859903011bed6652b248e9d1ad3 100755 (executable)
@@ -316,16 +316,14 @@ int sensor_5e9_cis_otp_read(struct v4l2_subdev *subdev, struct fimc_is_device_se
 
        info("OTP read start\n");
        dbg_sensor(1, "%s, 1. sensor initial setting", __func__);
-       CALL_CISOPS(cis, cis_set_global_setting, subdev);
-       CALL_CISOPS(cis, cis_mode_change, subdev, 0);
 
        I2C_MUTEX_LOCK(cis->i2c_lock);
 
        dbg_sensor(1, "%s, 2. sensor stream on", __func__);
        fimc_is_sensor_write8(client, 0x0100, 0x01);
 
-       /* wait 50ms */
-       msleep(50);
+       /* wait streamon */
+       CALL_CISOPS(cis, cis_wait_streamon, subdev);
 
        dbg_sensor(1, "%s, 3. page select & read cal", __func__);
        for (page = OTP_PAGE_START; page <= OTP_PAGE_END; page++) {