iommu/arm-smmu: Allow client devices to select direct mapping
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 20 Apr 2020 18:33:51 +0000 (00:03 +0530)
committerWill Deacon <will@kernel.org>
Thu, 7 May 2020 13:21:42 +0000 (14:21 +0100)
commit0e764a01015dfebff8a8ffd297d74663772e248a
tree47f74cff60243180cc2e7592c4f406b73ee6ae61
parent232c5ae8a3614f112712d43e1dbbd8dd6f8453c1
iommu/arm-smmu: Allow client devices to select direct mapping

Some client devices want to directly map the IOMMU themselves instead
of using the DMA domain. Allow those devices to opt in to direct
mapping by way of a list of compatible strings.

Co-developed-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/7cf1f64167b5545b7f42275395be1f1e2ea3a6ac.1587407458.git.saiprakash.ranjan@codeaurora.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-qcom.c