dma-direct: re-enable mmap for !CONFIG_MMU
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Jun 2020 08:29:49 +0000 (10:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Jun 2020 07:29:31 +0000 (09:29 +0200)
commit1fbf57d0530217b9f264eedc4867bf91479cdf3c
tree24d8dfeea45accda549aa7cfba9cbcabe5f9c684
parentdbed452a078d56bc7f1abecc3edd6a75e8e4484e
dma-direct: re-enable mmap for !CONFIG_MMU

nommu configfs can trivially map the coherent allocations to user space,
as no actual page table setup is required and the kernel and the user
space programs share the same address space.

Fixes: 62fcee9a3bd7 ("dma-mapping: remove CONFIG_ARCH_NO_COHERENT_DMA_MMAP")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: dillon min <dillon.minfei@gmail.com>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Tested-by: dillon min <dillon.minfei@gmail.com>
kernel/dma/Kconfig
kernel/dma/direct.c