Browse Source

msm: camera: reqmgr: Defer probe when master is not ready

Some sensor drivers that are not slaves to CRM, can probe earlier
than the master bind call. Return EPROBE_DEFER when camera v4l2
root device is not ready.

CRs-Fixed: 2734061
Change-Id: I5a1162f38526fc7f95127b4163183aa66f213d8f
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Mukund Madhusudan Atre 5 năm trước cách đây
mục cha
commit
a7b73974d0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      drivers/cam_req_mgr/cam_req_mgr_dev.c

+ 2 - 2
drivers/cam_req_mgr/cam_req_mgr_dev.c

@@ -664,8 +664,8 @@ int cam_register_subdev(struct cam_subdev *csd)
 	int rc;
 
 	if (!g_dev.state) {
-		CAM_ERR(CAM_CRM, "camera root device not ready yet");
-		return -ENODEV;
+		CAM_DBG(CAM_CRM, "camera root device not ready yet");
+		return -EPROBE_DEFER;
 	}
 
 	if (!csd || !csd->name) {