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 <matre@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
9b8cae4b7c
commit
a7b73974d0
@@ -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) {
|
||||
|
Reference in New Issue
Block a user