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

Commit aeca902a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: tfe: Disable clock if tfe2 is not supported" into camera-kernel.lnx.3.1

parents 9ecddf02 6c21f0c7
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2735,6 +2735,14 @@ int cam_tfe_csid_hw_probe_init(struct cam_hw_intf *csid_hw_intf,
			csid_reg->cmn_reg->top_tfe2_fuse_reg);
		if (val) {
			CAM_INFO(CAM_ISP, "TFE 2 is not supported by hardware");

			rc = cam_tfe_csid_disable_soc_resources(
				&tfe_csid_hw->hw_info->soc_info);
			if (rc)
				CAM_ERR(CAM_ISP,
					"CSID:%d Disable CSID SOC failed",
					tfe_csid_hw->hw_intf->hw_idx);
			else
				rc = -EINVAL;
			goto err;
		}