Re: [spi-devel-general] [Patch] Add spi full duplex mode transfer support

From: David Brownell
Date: Wed Aug 30 2006 - 12:23:51 EST


On Wednesday 30 August 2006 8:56 am, Stephen Street wrote:

> My experiance has shown the most stack allocated transfer buffers are
> not 8 byte aligned and thus use PIO mode.

Of course, providing a transfer buffer on the stack is nonportable;
it's not DMA-safe (especially on systems with dma-incoherent caches!),
while transfer buffers are required to be DMA-safe so that controller
buffers can choose to use DMA for _all_ transfers if they want.

- Dave


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/