Thread (1 message) 1 message, 1 author, 2013-02-07

[PATCH 2/5] spi: pl022: use generic DMA slave configuration if possible

From: Linus Walleij <hidden>
Date: 2013-02-07 20:19:04
Also in: linux-devicetree, linux-spi

On Thu, Feb 7, 2013 at 8:42 PM, Arnd Bergmann [off-list ref] wrote:
On Thursday 07 February 2013, Linus Walleij wrote:
quoted
Actually I once read about a feature where the kernel provides
a static page full of zeroes or something like this, that would be
ideal to use in cases like this, then all of this dummy page
allocation and freeing can be deleted.
You mean empty_zero_page? That only works if this page is
read-only from the perspective of the DMA controller, but
then it would be a good fit, yes.
That's actually how it's used.

SPI is symmetric, and in the DMA case we're not poking
data into the buffers from the CPU so the controller need
something - anything - to stream to the block.

If we can use that page we'll even save a few remaps.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help