iommu/arm-smmu-v3: Prepare for handling arm_smmu_write_ctx_desc() failure
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Wed, 15 Jan 2020 12:52:35 +0000 (13:52 +0100)
committerWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 16:05:54 +0000 (16:05 +0000)
commit492ddc79e07ed16a4ec4b6f57787273b2e4c26c1
tree3a28a7604ed1d1ff190bc2a1441a6d41204d5692
parent2505ec6f85ad864b76127f9662c6f3f315dff14f
iommu/arm-smmu-v3: Prepare for handling arm_smmu_write_ctx_desc() failure

Second-level context descriptor tables will be allocated lazily in
arm_smmu_write_ctx_desc(). Help with handling allocation failure by
moving the CD write into arm_smmu_domain_finalise_s1().

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
[will: Add comment per discussion on list]
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c