Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Shih <pihsun@chromium.org>2018-09-10 06:54:21 +0300
committerMark Brown <broonie@kernel.org>2018-09-18 19:28:06 +0300
commit00bca73bfca4fb0ab089b94cad0fc83d8b49c25f (patch)
tree2fd826f462b1cc4165a366ae66143b1228ae7080 /drivers/spi/spi.c
parent0fd85869c2a9c8723a98bc1f56a876e8383649f4 (diff)
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.c')
0 files changed, 0 insertions, 0 deletions