iommu/arm-smmu: Pass io-pgtable config to implementation specific function
authorJordan Crouse <jcrouse@codeaurora.org>
Sat, 5 Sep 2020 20:04:18 +0000 (13:04 -0700)
committerWill Deacon <will@kernel.org>
Mon, 21 Sep 2020 21:14:05 +0000 (22:14 +0100)
commitdd147a89f37d5ad32fe601eb11967326312da71a
tree59ddc7d45d11e1902efc2c36ba5d282940c2dec9
parent376cdf66f62444a1b4ebb393bab9fc44966f9b49
iommu/arm-smmu: Pass io-pgtable config to implementation specific function

Construct the io-pgtable config before calling the implementation specific
init_context function and pass it so the implementation specific function
can get a chance to change it before the io-pgtable is created.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/arm/arm-smmu/arm-smmu.h