Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0edfea8 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-mapping: move the remap helpers to a separate file



The dma remap code only makes sense for not cache coherent architectures
(or possibly the corner case of highmem CMA allocations) and currently
is only used by arm, arm64, csky and xtensa.  Split it out into a
separate file with a separate Kconfig symbol, which gets the right
copyright notice given that this code was written by Laura Abbott
working for Code Aurora at that point.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
parent 704f2c20
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ config ARM
	select CPU_PM if (SUSPEND || CPU_IDLE)
	select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
	select DMA_DIRECT_OPS if !MMU
	select DMA_REMAP if MMU
	select EDAC_SUPPORT
	select EDAC_ATOMIC_SCRUB
	select GENERIC_ALLOCATOR
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ config ARM64
	select CRC32
	select DCACHE_WORD_ACCESS
	select DMA_DIRECT_OPS
	select DMA_REMAP
	select EDAC_SUPPORT
	select FRAME_POINTER
	select GENERIC_ALLOCATOR
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ config CSKY
	select CLKSRC_OF
	select DMA_DIRECT_OPS
	select DMA_NONCOHERENT_OPS
	select DMA_REMAP
	select IRQ_DOMAIN
	select HANDLE_DOMAIN_IRQ
	select DW_APB_TIMER_OF
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ config XTENSA
	select CLONE_BACKWARDS
	select COMMON_CLK
	select DMA_DIRECT_OPS
	select DMA_REMAP if MMU
	select GENERIC_ATOMIC64
	select GENERIC_CLOCKEVENTS
	select GENERIC_IRQ_SHOW
+4 −0
Original line number Diff line number Diff line
@@ -51,3 +51,7 @@ config SWIOTLB
	bool
	select DMA_DIRECT_OPS
	select NEED_DMA_MAP_STATE

config DMA_REMAP
	depends on MMU
	bool
Loading