iommu: Replace iommu_group_do_dma_first_attach with __iommu_device_set_domain
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 11 May 2023 04:42:06 +0000 (01:42 -0300)
committerJoerg Roedel <jroedel@suse.de>
Tue, 23 May 2023 06:15:54 +0000 (08:15 +0200)
commit2f74198ae006c50a4188ae02c10e2c7b0b8142da
tree87935a10f9d9044aa2dcf93c56c37f82552842bd
parent0046a4337eae148510173680f82b483f7c3b7ded
iommu: Replace iommu_group_do_dma_first_attach with __iommu_device_set_domain

Since __iommu_device_set_domain() now knows how to handle deferred attach
we can just call it directly from the only call site.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/8-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c