ソースを参照

msm: camera: req_mgr: Rearrange state change sequence

Component bind is responsible for platform bus. QUP i2c bus slaves
can come at probe anytime. This operation is corrupting the slave
list for CRM. This change makes sure that CRM is available after
subdev list is initiate first and then only allows the subdev to be
add in the list.

CRs-Fixed: 3034933
Change-Id: Ia08702a8b38f2f2f590021b997c729131e919d2d
Signed-off-by: Jigarkumar Zala <[email protected]>
Jigarkumar Zala 3 年 前
コミット
33cf758851
1 ファイル変更1 行追加1 行削除
  1. 1 1
      drivers/cam_req_mgr/cam_req_mgr_dev.c

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_dev.c

@@ -828,7 +828,6 @@ static int cam_req_mgr_component_master_bind(struct device *dev)
 		goto req_mgr_core_fail;
 	}
 
-	g_dev.state = true;
 	INIT_LIST_HEAD(&cam_req_mgr_ordered_sd_list);
 
 	if (g_cam_req_mgr_timer_cachep == NULL) {
@@ -843,6 +842,7 @@ static int cam_req_mgr_component_master_bind(struct device *dev)
 	}
 
 	CAM_DBG(CAM_CRM, "All probes done, binding slave components");
+	g_dev.state = true;
 	rc = component_bind_all(dev, NULL);
 	if (rc) {
 		CAM_ERR(CAM_CRM,