[PATCH RFC 01/17] iommu: Remove struct iommu_ops *iommu from arch_setup_dma_ops()
Rob Herring
robh at kernel.org
Wed Nov 8 08:18:22 PST 2023
On Fri, Nov 03, 2023 at 01:44:46PM -0300, Jason Gunthorpe wrote:
> 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.
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
> ---
> arch/arc/mm/dma.c | 2 +-
> arch/arm/mm/dma-mapping-nommu.c | 2 +-
> arch/arm/mm/dma-mapping.c | 10 +++++-----
> arch/arm64/mm/dma-mapping.c | 4 ++--
> arch/mips/mm/dma-noncoherent.c | 2 +-
> arch/riscv/mm/dma-noncoherent.c | 2 +-
> drivers/acpi/scan.c | 3 +--
> drivers/hv/hv_common.c | 2 +-
> drivers/of/device.c | 2 +-
Acked-by: Rob Herring <robh at kernel.org>
> include/linux/dma-map-ops.h | 4 ++--
> 10 files changed, 16 insertions(+), 17 deletions(-)
More information about the linux-snps-arc
mailing list