iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 7 Dec 2023 18:03:08 +0000 (14:03 -0400)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:18:45 +0000 (10:18 +0100)
commit4720287c7bf76e59d19d4dfbdc3f54eeea6fd46b
tree7c540694b445eafc54a675d86954ae1a2028cbc0
parent7be423336eccc872249d37900c19c1d24f171353
iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops()

This is not being used to pass ops, it is just a way to tell if an
iommu driver was probed. These days this can be detected directly via
device_iommu_mapped(). Call device_iommu_mapped() in the two places that
need to check it and remove the iommu parameter everywhere.

Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v2-16e4def25ebb+820-iommu_fwspec_p1_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/arc/mm/dma.c
arch/arm/mm/dma-mapping-nommu.c
arch/arm/mm/dma-mapping.c
arch/arm64/mm/dma-mapping.c
arch/mips/mm/dma-noncoherent.c
arch/riscv/mm/dma-noncoherent.c
drivers/acpi/scan.c
drivers/hv/hv_common.c
drivers/of/device.c
include/linux/dma-map-ops.h