nds32: consolidate DMA cache maintainance routines
authorChristoph Hellwig <hch@lst.de>
Sat, 19 May 2018 07:17:01 +0000 (09:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 May 2018 14:10:13 +0000 (16:10 +0200)
commit4ac1c68e360653cad34488a5a1915d55f7c3fa86
tree36b4ff79ad36c6f6893eec97e857b18f576447ff
parent0ead51c3fbd15a4bc91e984f1b18b5c9422fbb02
nds32: consolidate DMA cache maintainance routines

Make sure all other DMA methods call nds32_dma_sync_single_for_{device,cpu}
to perform cache maintaince, and remove the consisteny_sync helper that
implemented both with entirely separate code based off an argument.

Also make sure these helpers handled highmem properly, for which code
is copy and pasted from mips.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Greentime Hu <greentime@andestech.com>
Tested-by: Greentime Hu <greentime@andestech.com>
arch/nds32/kernel/dma.c