From 6bbdcb3f6d0f737c6318426cc07924de033dc0ef Mon Sep 17 00:00:00 2001 From: Sureshnaidu Laveti Date: Tue, 17 Nov 2020 15:01:50 -0800 Subject: [PATCH] msm: camera: sensor: Reset actuator flush requestId When camera module shut down happens reset the last flush request ID for the new session to continue as fresh start. CRs-Fixed: 2822543 Change-Id: Ic5b43d7acaeb7e7b6999c02cbb4654598469638b Signed-off-by: Sureshnaidu Laveti --- drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c b/drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c index 47a261808873..aa761a729c07 100644 --- a/drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c +++ b/drivers/cam_sensor_module/cam_actuator/cam_actuator_core.c @@ -801,6 +801,7 @@ void cam_actuator_shutdown(struct cam_actuator_ctrl_t *a_ctrl) power_info->power_down_setting = NULL; power_info->power_setting_size = 0; power_info->power_down_setting_size = 0; + a_ctrl->last_flush_req = 0; a_ctrl->cam_act_state = CAM_ACTUATOR_INIT; }