]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: 9417/1: dma-mapping: Pass device to arm_iommu_create_mapping()
authorJason Gunthorpe <jgg@ziepe.ca>
Wed, 4 Sep 2024 12:36:02 +0000 (13:36 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 4 Sep 2024 14:02:07 +0000 (15:02 +0100)
commit9e8354b399e99cec3e3546035bee3347a6df2f24
treef969f28664a131fbf56b65f3c526b11aee114d28
parentf7f8b433ac60057c002efda102c5529f74997acf
ARM: 9417/1: dma-mapping: Pass device to arm_iommu_create_mapping()

All users of ARM IOMMU mappings create them for a particular device, so
change the interface to accept the device rather than forcing a vague
indirection through a bus type. This prepares for making a similar
change to iommu_domain_alloc() itself.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/dma-iommu.h
arch/arm/mm/dma-mapping.c
drivers/gpu/drm/exynos/exynos_drm_dma.c
drivers/iommu/ipmmu-vmsa.c
drivers/iommu/mtk_iommu_v1.c
drivers/media/platform/ti/omap3isp/isp.c