diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-25 11:01:35 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2019-07-01 11:17:00 +0200 |
commit | 69878ef47562f32e02d0b7975c990e1c0339320d (patch) | |
tree | 8a33017b7cacf7905dc0c2a85c6b64d283c51610 /arch/m68k/Kconfig | |
parent | m68k: Use the generic dma coherent remap allocator (diff) | |
download | linux-69878ef47562f32e02d0b7975c990e1c0339320d.tar.xz linux-69878ef47562f32e02d0b7975c990e1c0339320d.zip |
m68k: Implement arch_dma_prep_coherent()
When we remap memory as non-cached, to be used as a DMA coherent buffer,
we should writeback all cache and invalidate the cache lines so that we
make sure we have a clean slate. Implement this using the cache_push()
helper.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/Kconfig')
-rw-r--r-- | arch/m68k/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 3a52bf46e043..00f5c98a5e05 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig @@ -4,6 +4,7 @@ config M68K default y select ARCH_32BIT_OFF_T select ARCH_HAS_DMA_MMAP_PGPROT if MMU && !COLDFIRE + select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA select ARCH_MIGHT_HAVE_PC_PARPORT if ISA select ARCH_NO_COHERENT_DMA_MMAP if !MMU |