summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorPeter Shih <pihsun@chromium.org>2018-09-10 11:54:21 +0800
committerMark Brown <broonie@kernel.org>2018-09-18 09:28:06 -0700
commit00bca73bfca4fb0ab089b94cad0fc83d8b49c25f (patch)
tree2fd826f462b1cc4165a366ae66143b1228ae7080 /drivers/spi/spi-pxa2xx.c
parent0fd85869c2a9c8723a98bc1f56a876e8383649f4 (diff)
downloadtalos-obmc-linux-00bca73bfca4fb0ab089b94cad0fc83d8b49c25f.tar.gz
talos-obmc-linux-00bca73bfca4fb0ab089b94cad0fc83d8b49c25f.zip
spi: mediatek: Don't modify spi_transfer when transfer.
Mediatek SPI driver modifies some fields (tx_buf, rx_buf, len, tx_dma, rx_dma) of the spi_transfer* passed in when doing transfer_one and in interrupt handler. This is somewhat unexpected, and there are some caller (e.g. Cr50 spi driver) that reuse the spi_transfer for multiple messages. Add a field to record how many bytes have been transferred, and calculate the right len / buffer based on it instead. Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> Change-Id: I23e218cd964f16c0b2b26127d4a5ca6529867673 Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud