lkml.org 
[lkml]   [2017]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 2/7] dma: Add simple dma_noop_mmap
On Wed, May 24, 2017 at 11:24:27AM +0100, Vladimir Murzin wrote:
> This patch adds a simple implementation of mmap to dma_noop_ops.

Currently we use dma_common_mmap as the generic fallback if a dma_ops
instance doesn't implement a mmap method. Can you just fix up
dma_common_mmap for your nommu case - it looks like yours is basically
a subset.

In fact I suspect yours should call dma_mmap_from_coherent as well,
so the only different is the lack of pgprot_noncached call.

\
 
 \ /
  Last update: 2017-06-20 15:24    [W:0.169 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site