Thread (6 messages) flat view 6 messages, 4 authors, 2014-07-02

[PATCH] spi: qup: Add DMA capabilities

From: Andy Gross <hidden>
Date: 2014-06-27 18:58:34
Also in: linux-arm-msm, linux-spi, lkml

On Fri, Jun 27, 2014 at 05:24:11PM +0100, Russell King - ARM Linux wrote:

<snip>
quoted
quoted
It would be better to use the core DMA mapping code rather than open
coding.  This code won't work for vmalloc()ed addresses, or physically
non-contiguous addresses unless there's an IOMMU fixing things up.
Ah, ok.  So I just need a to setup the scatter gather page list and then do a
dma_map_sg.  I'll resend once I have this in place.
Note that DMA from vmalloc'd memory is non-coherent on some platforms,
even if you use the DMA API.
Thankfully, that isn't the case on this platform.  As as the QUP controller is
only on Qualcomm chipsets, we don't have to worry about it being used on other
platforms.


-- 
sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help