[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)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:25:17 +0000 (11:25 +0800)
CRs-fixed: (CR)

Change-Id: I554d9560608b0f2b4069b6e8bd5a2b4dcab98c5b
Signed-off-by: xff <fangfang.xu@samsung.com>
Reviewed-on: https://gerrit.mot.com/1339435
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dawei Wang <wangdw10@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Submit-Approved: Jira Key

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++) {