3 Feb 2009 16:47
Re: [PATCH] libertas: add abilty to set DMA buffers alignmnet for SPI interface in compile time
On Tue, 2009-02-03 at 09:04 +0200, Mike Rapoport wrote: > Different SPI controllers pose different alignment requirements on DMAable > buffers. It's possible to alter the SPI controller driver to use it's own > properly aligned buffers for DMA and copy the data it gets from the client > into these buffers. However, this approach also impacts overall performance. > Adding ability to set DMA buffers alignment for SPI interface in compile > time prevents unnecessary memcpy calls. I'd still rather that alignment constraints were handled in the *controller* code, where the constraint actually is. If this path is followed, then every SPI-connected device for a platform would have to have specific hacks for every platform, which is quite unmaintainable. Is there a good way to fit the alignment constraints into the SPI controller code? Dan > Signed-off-by: Mike Rapoport <mike@...> > --- > drivers/net/wireless/Kconfig | 10 ++++++++++ > drivers/net/wireless/libertas/if_spi.c | 27 ++++++++++++++++----------- > 2 files changed, 26 insertions(+), 11 deletions(-) > > diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig > index fe819a7..3bbb7b2 100644 > --- a/drivers/net/wireless/Kconfig > +++ b/drivers/net/wireless/Kconfig > <at> <at> -157,6 +157,16 <at> <at> config LIBERTAS_SPI > ---(Continue reading)help--- > A driver for Marvell Libertas 8686 SPI devices.
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to
RSS Feed