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

Commit 1dc299c8 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Liam Mark
Browse files

msm_11ad: Remove obsolete IOMMU domain attribute



The DOMAIN_ATTR_COHERENT_HTW_DISABLE IOMMU domain attribute is being
removed.  SMMU coherency will be configured through the SMMU device tree
nodes moving forward.  Remove the obsolete option.

Change-Id: I363e1c13314027ef0708c08b5080c46b16cd4508
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 7052d6a2
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -569,7 +569,6 @@ err_disable_vregs:

static int msm_11ad_smmu_init(struct msm11ad_ctx *ctx)
{
	int disable_htw = 1;
	int atomic_ctx = 1;
	int rc;
	int bypass_enable = 1;
@@ -586,17 +585,6 @@ static int msm_11ad_smmu_init(struct msm11ad_ctx *ctx)
	}
	dev_info(ctx->dev, "IOMMU mapping created: %p\n", ctx->mapping);

	rc = iommu_domain_set_attr(ctx->mapping->domain,
				   DOMAIN_ATTR_COHERENT_HTW_DISABLE,
				   &disable_htw);
	if (rc) {
		/* This error can be ignored and not considered fatal,
		 * but let the users know this happened
		 */
		dev_err(ctx->dev, "Warning: disable coherent HTW failed (%d)\n",
			rc);
	}

	rc = iommu_domain_set_attr(ctx->mapping->domain,
				   DOMAIN_ATTR_ATOMIC,
				   &atomic_ctx);