diff options
| author | Laura Abbott <lauraa@codeaurora.org> | 2014-03-06 11:19:54 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:11:56 -0700 |
| commit | 0ae59a3564a4ecebcd6dfc64ecba09bced3322cb (patch) | |
| tree | 16a72a59579b2e794313dd5bf32cc19e53db992c /include | |
| parent | 2c1e73b58e6fc2c6c06a5e68445f0bfd11de6535 (diff) | |
arm64: Enable dma_mmap_nonconsistent
Now that the non-consistent behavior is fully integrated into the
dma mapping subsystem, allow user space to mmap nonconsistent dma
buffers.
Change-Id: I1b95ba9a1751e00a5812d9df582af20f316fcafe
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Conflicts:
arch/arm64/include/asm/dma-mapping.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/dma-mapping-common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-generic/dma-mapping-common.h b/include/asm-generic/dma-mapping-common.h index ac96eeceeb36..3bee2e334ad4 100644 --- a/include/asm-generic/dma-mapping-common.h +++ b/include/asm-generic/dma-mapping-common.h @@ -348,7 +348,9 @@ static inline int dma_mmap_nonconsistent(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) { - return -ENODEV; + DEFINE_DMA_ATTRS(attrs); + dma_set_attr(DMA_ATTR_NON_CONSISTENT, &attrs); + return dma_mmap_attrs(dev, vma, cpu_addr, dma_addr, size, &attrs); } #ifndef HAVE_ARCH_DMA_SUPPORTED |
