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 <quic_jzala@quicinc.com>
This commit is contained in:
Jigarkumar Zala
2021-12-09 15:18:10 -08:00
gecommit door Gerrit - the friendly Code Review server
bovenliggende c4b93c74bf
commit 388718b394
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen

Bestand weergeven

@@ -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
};

Bestand weergeven

@@ -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)