spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE
authorSanchayan Maity <maitysanchayan@gmail.com>
Thu, 17 Nov 2016 12:16:48 +0000 (17:46 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 18 Nov 2016 12:03:32 +0000 (12:03 +0000)
commit9811430465fccae17862213d07eba017c149eb9c
tree0a2ecb559e2122d95c36a6f612e7e0817c12a1d1
parent90ba37033cb94207e97c4ced9be575770438213b
spi: spi-fsl-dspi: Fix SPI transfer issue when using multiple SPI_IOC_MESSAGE

Current DMA implementation had a bug where the DMA transfer would
exit the loop in dspi_transfer_one_message after the completion of
a single transfer. This results in a multi message transfer submitted
with SPI_IOC_MESSAGE to terminate incorrectly without an error.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c