summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.h
diff options
context:
space:
mode:
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>2020-04-21 00:03:50 +0530
committerWill Deacon <will@kernel.org>2020-05-07 14:21:42 +0100
commit232c5ae8a3614f112712d43e1dbbd8dd6f8453c1 (patch)
tree48b3da27ecec2cbbadd388a32990fccc1c3f209f /drivers/iommu/arm-smmu.h
parent64510ede36845500584485f3ad30dbcbf83091a6 (diff)
downloadlinux-stable-232c5ae8a3614f112712d43e1dbbd8dd6f8453c1.tar.gz
linux-stable-232c5ae8a3614f112712d43e1dbbd8dd6f8453c1.tar.bz2
linux-stable-232c5ae8a3614f112712d43e1dbbd8dd6f8453c1.zip
iommu/arm-smmu: Implement iommu_ops->def_domain_type call-back
Implement the new def_domain_type call-back for the ARM SMMU driver. We need this to support requesting the domain type by the client devices. Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/28c5d101cc4ac29aff3553ecec7cf256d0907ed7.1587407458.git.saiprakash.ranjan@codeaurora.org Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm-smmu.h')
-rw-r--r--drivers/iommu/arm-smmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu.h b/drivers/iommu/arm-smmu.h
index 8d1cd54d82a6..d172c024be61 100644
--- a/drivers/iommu/arm-smmu.h
+++ b/drivers/iommu/arm-smmu.h
@@ -386,6 +386,7 @@ struct arm_smmu_impl {
int (*init_context)(struct arm_smmu_domain *smmu_domain);
void (*tlb_sync)(struct arm_smmu_device *smmu, int page, int sync,
int status);
+ int (*def_domain_type)(struct device *dev);
};
static inline void __iomem *arm_smmu_page(struct arm_smmu_device *smmu, int n)