iommu/dma: move the arm64 wrappers to common code
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:29 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:10 +0000 (17:31 +0200)
commit06d60728ff5c01795ac0bad66a5c42e3e78dcb6b
treef9d33e1eb1c2dc5baddb7a9d9036ba23047076de
parent23f88e0a7e9f084e91a40cc90a15968fb1e5d506
iommu/dma: move the arm64 wrappers to common code

There is nothing really arm64 specific in the iommu_dma_ops
implementation, so move it to dma-iommu.c and keep a lot of symbols
self-contained.  Note the implementation does depend on the
DMA_DIRECT_REMAP infrastructure for now, so we'll have to make the
DMA_IOMMU support depend on it, but this will be relaxed soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/arm64/mm/dma-mapping.c
drivers/iommu/Kconfig
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h