Эх сурвалжийг харах

msm: camera: common: Add level in priority list for shutdown

Currently sensor and csiphy has the same priority in shutdown
sequence. This is sometime calls sensor shutdown before csiphy
and with the AON usecase it is failing with CPAS related operation.
This change introducing the new enum entry for the Medium_low, which
make sure the csiphy shutdown gets call before the sensor shutdown
in order to make the operation in align with cross modules.

CRs-Fixed: 3084672
Change-Id: I40f495151392f96ac89caf8df852ed8326b79d9b
Signed-off-by: Jigarkumar Zala <[email protected]>
Jigarkumar Zala 3 жил өмнө
parent
commit
388718b394

+ 1 - 0
drivers/cam_req_mgr/cam_subdev.h

@@ -24,6 +24,7 @@ enum cam_subdev_message_type_t {
 enum cam_subdev_close_seq_priority {
 	CAM_SD_CLOSE_HIGH_PRIORITY,
 	CAM_SD_CLOSE_MEDIUM_PRIORITY,
+	CAM_SD_CLOSE_MEDIUM_LOW_PRIORITY,
 	CAM_SD_CLOSE_LOW_PRIORITY
 };
 

+ 1 - 1
drivers/cam_sensor_module/cam_sensor/cam_sensor_dev.c

@@ -144,7 +144,7 @@ static int cam_sensor_init_subdev_params(struct cam_sensor_ctrl_t *s_ctrl)
 		CAM_SENSOR_DEVICE_TYPE;
 	s_ctrl->v4l2_dev_str.token = s_ctrl;
 	s_ctrl->v4l2_dev_str.close_seq_prior =
-		CAM_SD_CLOSE_MEDIUM_PRIORITY;
+		CAM_SD_CLOSE_MEDIUM_LOW_PRIORITY;
 
 	rc = cam_register_subdev(&(s_ctrl->v4l2_dev_str));
 	if (rc)