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

Commit 28663b69 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: Do not attach iommu if its already attached"

parents f3f239d9 9fc3d953
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -6337,9 +6337,10 @@ int cam_ife_hw_mgr_init(struct cam_hw_mgr_intf *hw_mgr_intf, int *iommu_hdl)
		return -EINVAL;
	}

	if (cam_smmu_ops(g_ife_hw_mgr.mgr_common.img_iommu_hdl,
		CAM_SMMU_ATTACH)) {
		CAM_ERR(CAM_ISP, "Attach iommu handle failed.");
	rc = cam_smmu_ops(g_ife_hw_mgr.mgr_common.img_iommu_hdl,
		CAM_SMMU_ATTACH);
	if (rc && rc != -EALREADY) {
		CAM_ERR(CAM_ISP, "Attach iommu handle failed %d", rc);
		goto attach_fail;
	}