Prechádzať zdrojové kódy

msm: camera: isp: Configure RX before issuing start command

Prevent potential errors on starting path after flush by issuing start
command after configuring RX.

CRs-Fixed: 2846451
Change-Id: Ib72fc9f0b8397f360f5bed73379ec65310cdc609
Signed-off-by: Anand Ravi <[email protected]>
Anand Ravi 4 rokov pred
rodič
commit
fcc85e1bb2

+ 2 - 1
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver2.c

@@ -3871,6 +3871,8 @@ int cam_ife_csid_ver2_start(void *hw_priv, void *args,
 		}
 	}
 
+	cam_ife_csid_ver2_enable_csi2(csid_hw);
+
 	for (i = 0; i < start_args->num_res; i++) {
 		res = start_args->node_res[i];
 		CAM_DBG(CAM_ISP, "CSID:%d res_type :%d res_id:%d",
@@ -3879,7 +3881,6 @@ int cam_ife_csid_ver2_start(void *hw_priv, void *args,
 		cam_ife_csid_ver2_enable_path(csid_hw, res);
 	}
 
-	cam_ife_csid_ver2_enable_csi2(csid_hw);
 end:
 	mutex_unlock(&csid_hw->hw_info->hw_mutex);
 	return rc;