Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4a72b1d authored by Patrick Daly's avatar Patrick Daly
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 0a4d1ddb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -855,7 +855,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;
	unsigned long attrs = DMA_ATTR_NON_CONSISTENT;

	return dma_mmap_attrs(dev, vma, cpu_addr, dma_addr, size, attrs);
}

#if defined(CONFIG_NEED_DMA_MAP_STATE) || defined(CONFIG_DMA_API_DEBUG)