diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-06 14:01:50 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-09-04 11:13:18 +0200 |
commit | f9f3232a7d0ab73a33d11f4056c5823010f03d55 (patch) | |
tree | 021c07b01f104492a5d049a885bc8fb931839c34 /arch/mips/jazz | |
parent | dma-mapping: move the dma_get_sgtable API comments from arm to common code (diff) | |
download | linux-f9f3232a7d0ab73a33d11f4056c5823010f03d55.tar.xz linux-f9f3232a7d0ab73a33d11f4056c5823010f03d55.zip |
dma-mapping: explicitly wire up ->mmap and ->get_sgtable
While the default ->mmap and ->get_sgtable implementations work for the
majority of our dma_map_ops impementations they are inherently safe
for others that don't use the page allocator or CMA and/or use their
own way of remapping not covered by the common code. So remove the
defaults if these methods are not wired up, but instead wire up the
default implementations for all safe instances.
Fixes: e1c7e324539a ("dma-mapping: always provide the dma_map_ops based implementation")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/mips/jazz')
-rw-r--r-- | arch/mips/jazz/jazzdma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/jazz/jazzdma.c b/arch/mips/jazz/jazzdma.c index 1804dc9d8136..a01e14955187 100644 --- a/arch/mips/jazz/jazzdma.c +++ b/arch/mips/jazz/jazzdma.c @@ -682,5 +682,7 @@ const struct dma_map_ops jazz_dma_ops = { .sync_sg_for_device = jazz_dma_sync_sg_for_device, .dma_supported = dma_direct_supported, .cache_sync = arch_dma_cache_sync, + .mmap = dma_common_mmap, + .get_sgtable = dma_common_get_sgtable, }; EXPORT_SYMBOL(jazz_dma_ops); |