]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-mapping: clearly mark DMA ops as an architecture feature
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Aug 2024 06:02:47 +0000 (09:02 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2024 04:08:51 +0000 (07:08 +0300)
commitde6c85bf918ea52d5c680f0d130b37ee2ff152d6
tree4dd1ee15eaeac8ee0f26c1c4ec258d6b81057581
parent92193b3569ade4968011007356c8606def0657a1
dma-mapping: clearly mark DMA ops as an architecture feature

DMA ops are a helper for architectures and not for drivers to override
the DMA implementation.

Unfortunately driver authors keep ignoring this.  Make the fact more
clear by renaming the symbol to ARCH_HAS_DMA_OPS and having the two drivers
overriding their dma_ops depend on that.  These drivers should probably be
marked broken, but we can give them a bit of a grace period for that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> # for IPU6
Acked-by: Robin Murphy <robin.murphy@arm.com>
18 files changed:
arch/Kconfig
arch/alpha/Kconfig
arch/arm/Kconfig
arch/arm64/Kconfig
arch/mips/Kconfig
arch/parisc/Kconfig
arch/powerpc/Kconfig
arch/s390/Kconfig
arch/sparc/Kconfig
arch/x86/Kconfig
drivers/macintosh/macio_asic.c
drivers/media/pci/intel/ipu6/Kconfig
drivers/vdpa/Kconfig
drivers/xen/Kconfig
include/linux/device.h
include/linux/dma-map-ops.h
kernel/dma/Kconfig
kernel/dma/Makefile