lkml.org 
[lkml]   [2016]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5] spi: spi-ti-qspi: Add DMA support for QSPI mmap read
On Tue, Aug 09, 2016 at 06:20:01PM +0530, Vignesh R wrote:
>
>

> According to this thread[1], converting virtual address
> pointer into scatterlist which is then DMA mapped is unsafe on systems
> with certain cache architecture. Hence, I added code to handle kmap
> buffers inside the driver rather than updating generic spi-core code.

That's saying that things that aren't covered aren't DMAable safely at
all which is a more general issue...

> If its okay to update the spi_map_buf() to handle kmap buffers as above
> then I can submit the patch accordingly.

Yes, the whole point is that this is all in generic code so drivers
don't need to worry about it.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-09-17 09:57    [W:0.144 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site