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

Commit 301cff47 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: lrme: Remove Workaround for Lagoon BU" into camera-kernel.lnx.1.0

parents a287e858 089231c6
Loading
Loading
Loading
Loading
+7 −19
Original line number Diff line number Diff line
@@ -89,8 +89,6 @@ static int cam_lrme_hw_dev_probe(struct platform_device *pdev)
	const struct of_device_id *match_dev = NULL;
	struct cam_lrme_hw_info *hw_info;
	int rc, i;
	int32_t camera_hw_version;


	lrme_hw = kzalloc(sizeof(struct cam_hw_info), GFP_KERNEL);
	if (!lrme_hw) {
@@ -160,19 +158,11 @@ static int cam_lrme_hw_dev_probe(struct platform_device *pdev)
		goto release_cdm;
	}

	rc = cam_cpas_get_cpas_hw_version(&camera_hw_version);
	if (rc) {
		CAM_ERR(CAM_ISP, "Failed to get HW version rc:%d", rc);
		goto release_cdm;
	}

	if (camera_hw_version != CAM_CPAS_TITAN_170_V200) {
	rc = cam_lrme_hw_start(lrme_hw, NULL, 0);
	if (rc) {
		CAM_ERR(CAM_LRME, "Failed to hw init, rc=%d", rc);
		goto detach_smmu;
	}
	}

	rc = cam_lrme_hw_util_get_caps(lrme_hw, &lrme_core->hw_caps);
	if (rc) {
@@ -182,13 +172,11 @@ static int cam_lrme_hw_dev_probe(struct platform_device *pdev)
		goto detach_smmu;
	}

	if (camera_hw_version != CAM_CPAS_TITAN_170_V200) {
	rc = cam_lrme_hw_stop(lrme_hw, NULL, 0);
	if (rc) {
		CAM_ERR(CAM_LRME, "Failed to deinit hw, rc=%d", rc);
		goto detach_smmu;
	}
	}

	lrme_core->hw_idx = lrme_hw->soc_info.index;
	lrme_hw_intf.hw_priv = lrme_hw;