aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2016-03-24 09:35:44 -0400
committerMark Brown <broonie@kernel.org>2016-03-28 05:42:00 -0400
commit8c3ad488fe0e4478b3b29b9501074c5fb1bfda0d (patch)
tree8d95788523f52330b5396cc96de8ec231caa12b8 /drivers/spi/spi-pxa2xx.c
parent68335ec76e45fb3a1b796b26c3ea49ce1231d8fb (diff)
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>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 47bdbd350a24..86c155aea0cf 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1562,6 +1562,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
1562 master->unprepare_transfer_hardware = pxa2xx_spi_unprepare_transfer; 1562 master->unprepare_transfer_hardware = pxa2xx_spi_unprepare_transfer;
1563 master->fw_translate_cs = pxa2xx_spi_fw_translate_cs; 1563 master->fw_translate_cs = pxa2xx_spi_fw_translate_cs;
1564 master->auto_runtime_pm = true; 1564 master->auto_runtime_pm = true;
1565 master->flags = SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX;
1565 1566
1566 drv_data->ssp_type = ssp->type; 1567 drv_data->ssp_type = ssp->type;
1567 1568