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

Commit 6c16c8d0 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Remove DOMAIN_ATTR_UPSTREAM_IOVA_ALLOCATOR



The DOMAIN_ATTR_UPSTREAM_IOVA_ALLOCATOR iommu domain attribute
is no long present as the default allocation behavior aligns
with the upstream based dma_ops. Thus remove it.

Change-Id: I126480c51fa86bb1b47eecbcad727148a3c8ebd7
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent d8d9dfa2
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2969,13 +2969,6 @@ static int dwc3_msm_init_iommu(struct dwc3_msm *mdwc)
		return ret;
	}
	dev_dbg(mdwc->dev, "IOMMU mapping created: %pK\n", mdwc->iommu_map);
	ret = iommu_domain_set_attr(mdwc->iommu_map->domain,
			DOMAIN_ATTR_UPSTREAM_IOVA_ALLOCATOR, &atomic_ctx);
	if (ret) {
		dev_err(mdwc->dev, "set UPSTREAM_IOVA_ALLOCATOR failed(%d)\n",
				ret);
		goto release_mapping;
	}

	ret = iommu_domain_set_attr(mdwc->iommu_map->domain, DOMAIN_ATTR_ATOMIC,
			&atomic_ctx);