]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Implement arch_dma_prep_coherent()
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2019 09:01:35 +0000 (11:01 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 1 Jul 2019 09:17:00 +0000 (11:17 +0200)
commit1bbd94fb9bcd29a62816ea8042a37f683958d9e1
tree8a33017b7cacf7905dc0c2a85c6b64d283c51610
parent238884251e7313697bae39bb69daa908adca8130
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>
arch/m68k/Kconfig
arch/m68k/kernel/dma.c