diff options
author | Peter Shih <pihsun@chromium.org> | 2018-09-10 11:54:21 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-18 09:28:06 -0700 |
commit | 00bca73bfca4fb0ab089b94cad0fc83d8b49c25f (patch) | |
tree | 2fd826f462b1cc4165a366ae66143b1228ae7080 /drivers/spi/spi-pxa2xx.c | |
parent | 0fd85869c2a9c8723a98bc1f56a876e8383649f4 (diff) | |
download | talos-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