From bd014519f8b8165350d1cf7181de9c20d25fbd35 Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Fri, 8 May 2015 16:05:37 -0700 Subject: [PATCH] iommu/arm-smmu: silently succeed the secure VMID domain attr With the recent page table refactor we've lost our code to assign SMMU page tables to secure VMIDs. This functionality will be added back later but for now just silently succeed when clients set this attribute. This works for now because secure use cases haven't been brought up yet. Change-Id: Ic2970e01f2899a9649c883f85aaaec828f2e7597 Signed-off-by: Mitchel Humpherys --- drivers/iommu/arm-smmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 727a7751c131..0c998bcfe63c 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1762,6 +1762,9 @@ static int arm_smmu_domain_set_attr(struct iommu_domain *domain, ~(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE); break; } + case DOMAIN_ATTR_SECURE_VMID: + ret = 0; + break; default: ret = -ENODEV; }