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>
This commit is contained in:
Christoph Hellwig 2019-06-25 11:01:35 +02:00 • committed by Geert Uytterhoeven
commit 69878ef475
2 changed files with 6 additions and 0 deletions