sh: use dma_direct_ops for the CONFIG_DMA_COHERENT case
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Apr 2018 20:02:10 +0000 (22:02 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 2 Aug 2018 11:54:11 +0000 (13:54 +0200)
commita602915f5d0d9eff96a1d85b6f81e4921b52edfe
tree471aa4a6431fea4aa2eff5ce7e677976b5f964bd
parent47fcae0d2a5fc77123fc14b0db9fe0025a1a829a
sh: use dma_direct_ops for the CONFIG_DMA_COHERENT case

This is a slight change in behavior as we avoid the detour through the
virtual mapping for the coherent allocator, but if this CPU really is
coherent that should be the right thing to do.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/sh/Kconfig
arch/sh/include/asm/dma-mapping.h
arch/sh/kernel/Makefile
arch/sh/kernel/dma-nommu.c