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

Commit b350a646 authored by Alok Pandey's avatar Alok Pandey Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: icp: FW init response timeout fix



Handle errors after firmware "init response" times out.

Change-Id: If2544a18f6078aebaefe9354ac1c71e4a4094da2
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
Signed-off-by: default avatarPavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
parent bd699431
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2532,10 +2532,10 @@ static int cam_icp_mgr_icp_resume(struct cam_icp_hw_mgr *hw_mgr)
	if (hw_mgr->fw_download  == false) {
		CAM_DBG(CAM_ICP, "Downloading FW");
		mutex_unlock(&hw_mgr->hw_mgr_mutex);
		cam_icp_mgr_hw_open(hw_mgr, &downloadFromResume);
		rc = cam_icp_mgr_hw_open(hw_mgr, &downloadFromResume);
		mutex_lock(&hw_mgr->hw_mgr_mutex);
		CAM_DBG(CAM_ICP, "FW Download Done Exit");
		return 0;
		return rc;
	}

	rc = a5_dev_intf->hw_ops.init(a5_dev_intf->hw_priv, NULL, 0);