RFC: remove the need for <asm/dma-direct.h> on ARM
From: Christoph Hellwig
Date: Thu Sep 17 2020 - 13:38:59 EST
Hi Russell,
as Robin pointed out there is not much need for the ARM specific
routines to translated to and from a dma_addr_t given that we have
the dma offset (and now offset range) functionality. This series
converts ARM over to the generic helpers. This has only been tested
on qemu, and specificall not on omap1 and footbridge given that I
do not have the hardware.
The patches are on to of the dma-mapping for-next tree, to make
review and testing easier a git tree is also available here:
git://git.infradead.org/users/hch/misc.git arm-dma-direct-cleanups
Gitweb:
http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/arm-dma-direct-cleanups
Diffstat:
arch/arm/include/asm/dma-direct.h | 66 -----------------------
b/arch/arm/Kconfig | 1
b/arch/arm/common/dmabounce.c | 14 ++--
b/arch/arm/include/asm/memory.h | 2
b/arch/arm/mach-footbridge/cats-pci.c | 7 +-
b/arch/arm/mach-footbridge/common.c | 40 ++++++++++---
b/arch/arm/mach-footbridge/common.h | 3 +
b/arch/arm/mach-footbridge/ebsa285-pci.c | 7 +-
b/arch/arm/mach-footbridge/include/mach/memory.h | 4 -
b/arch/arm/mach-footbridge/netwinder-pci.c | 7 +-
b/arch/arm/mach-footbridge/personal-pci.c | 7 +-
b/arch/arm/mach-omap1/include/mach/memory.h | 31 ----------
b/arch/arm/mach-omap1/usb.c | 22 +++++++
b/arch/arm/mm/dma-mapping.c | 20 +++---
14 files changed, 91 insertions(+), 140 deletions(-)