Christoph Hellwig 58b0440663 dma-mapping: consolidate the dma mmap implementations
The only functional differences (modulo a few missing fixes in the arch
code) is that architectures without coherent caches need a hook to
convert a virtual or dma address into a pfn, given that we don't have
the kernel linear mapping available for the otherwise easy virt_to_page
call.  As a side effect we can support mmap of the per-device coherent
area even on architectures not providing the callback, and we make
previous dangerous default methods dma_common_mmap actually save for
non-coherent architectures by rejecting it without the right helper.

In addition to that we need a hook so that some architectures can
override the protection bits when mmaping a dma coherent allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Paul Burton <paul.burton@mips.com> # MIPS parts
2018-09-20 09:01:16 +02:00
..
2018-08-28 17:37:40 -04:00
2015-12-21 14:40:55 +00:00
2018-06-12 16:19:22 -07:00
2017-05-02 12:06:50 +02:00
2018-08-15 17:39:07 -07:00
2015-12-21 14:40:55 +00:00
2018-02-01 10:07:32 -05:00
2017-11-16 13:06:27 -08:00
2018-08-15 22:06:26 -07:00