From: xff Date: Tue, 16 Apr 2019 09:07:48 +0000 (+0800) Subject: [COMMON] fimc-is2: Optimized otp read flow path for 5e9 X-Git-Tag: MMI-QSAS30.62-33-3~807 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32311540555f7f082921bdfdb50f1e5ae83b40ce;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [COMMON] fimc-is2: Optimized otp read flow path for 5e9 Change-Id: I554d9560608b0f2b4069b6e8bd5a2b4dcab98c5b Signed-off-by: xff --- 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++) {