]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: pxa2xx: Use dummy buffers provided by SPI core
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 24 Mar 2016 13:35:44 +0000 (15:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Mar 2016 09:42:00 +0000 (10:42 +0100)
commit8c3ad488fe0e4478b3b29b9501074c5fb1bfda0d
tree8d95788523f52330b5396cc96de8ec231caa12b8
parent68335ec76e45fb3a1b796b26c3ea49ce1231d8fb
spi: pxa2xx: Use dummy buffers provided by SPI core

Dummy buffer is used for half duplex transfers that don't have TX or RX
buffer set. Instead of own dummy buffer management here let the SPI core to
handle it by setting the SPI_MASTER_MUST_RX and SPI_MASTER_MUST_TX flags.
Then core makes sure both transfer buffers are set.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-dma.c
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h