]> git.baikalelectronics.ru Git - kernel.git/commit
SPI: add dma_alignment field to spi_master
authorMike Rapoport <mike@compulab.co.il>
Tue, 7 Apr 2009 02:00:56 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2009 15:31:07 +0000 (08:31 -0700)
commit7cb5d207b9886a17353630e0c1d091b8862c8128
treef324e79410cde9dd51a0c931b2dbce70f1313e9a
parent0a775749306adfac314b7e21894ffc2d4ffa636b
SPI: add dma_alignment field to spi_master

Some SPI controllers have restrictions on DMAable buffers alignemt.
Currently if the buffer supplied by protocol driver is not properly
aligned, the controller silently performs transfer in PIO mode.  Addition
of dma_alignment field to spi_master allows protocol drivers to perform
proper alignment.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/spi/spi.h