Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7b73974 authored by Mukund Madhusudan Atre's avatar Mukund Madhusudan Atre Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarMukund Madhusudan Atre <matre@codeaurora.org>
parent 9b8cae4b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {