From acdfbb99689c552fd41fd8d12f07b7ad3533a846 Mon Sep 17 00:00:00 2001 From: xff Date: Tue, 16 Apr 2019 17:07:48 +0800 Subject: [PATCH] [COMMON] fimc-is2: Optimized otp read flow path for 5e9 Change-Id: I554d9560608b0f2b4069b6e8bd5a2b4dcab98c5b Signed-off-by: xff --- .../fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c index 9f4e414475e9..e54585412176 100755 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-5e9.c @@ -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++) { -- 2.20.1