ARM/dma-mapping: consolidate IOMMU ops callbacks
authorRobin Murphy <robin.murphy@arm.com>
Thu, 21 Apr 2022 11:36:58 +0000 (12:36 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 7 Jul 2022 16:18:58 +0000 (18:18 +0200)
commitd563bccfa35b59c2cdb982b181cf9de0ddc6c0be
treef8d5e23499afb19587bb92412bec3ef62fce7fe2
parent42998ef08aba01643d99f65718903b4414a8922f
ARM/dma-mapping: consolidate IOMMU ops callbacks

Merge the coherent and non-coherent callbacks down to a single
implementation each, relying on the generic dev->dma_coherent
flag at the points where the difference matters.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Marc Zyngier <maz@kernel.org>
arch/arm/mm/dma-mapping.c