summaryrefslogtreecommitdiffstats
path: root/arch/sh/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-17 22:02:10 +0200
committerChristoph Hellwig <hch@lst.de>2018-08-02 13:54:11 +0200
commita602915f5d0d9eff96a1d85b6f81e4921b52edfe (patch)
tree471aa4a6431fea4aa2eff5ce7e677976b5f964bd /arch/sh/Kconfig
parent47fcae0d2a5fc77123fc14b0db9fe0025a1a829a (diff)
downloadlinux-0-day-a602915f5d0d9eff96a1d85b6f81e4921b52edfe.tar.gz
linux-0-day-a602915f5d0d9eff96a1d85b6f81e4921b52edfe.tar.xz
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>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r--arch/sh/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index dd4f3d3e644fc..c9993a0cdc7e9 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -159,6 +159,7 @@ config SWAP_IO_SPACE
bool
config DMA_COHERENT
+ select DMA_DIRECT_OPS
bool
config DMA_NONCOHERENT