spi: spi-fsl-dspi: Fix continuous selection format
authorSanchayan Maity <maitysanchayan@gmail.com>
Tue, 22 Nov 2016 07:01:31 +0000 (12:31 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2016 16:47:25 +0000 (16:47 +0000)
commitccf7d8ee3d6eb600338a184e9a192ec1d5aee924
treeee3a4dbd2cbf0c9e12690d57de32097d6e3a8a34
parent1eaccf210c59e04eb6e9b5469a60d6609c95ac61
spi: spi-fsl-dspi: Fix continuous selection format

Current DMA implementation was not handling the continuous selection
format viz. SPI chip select would be deasserted even between sequential
serial transfers.

Use existing dspi_data_to_pushr function to restructure the transmit
code path and set or reset the CONT bit on same lines as code path
in EOQ mode does. This correctly implements continuous selection format
while also correcting and cleaning up the transmit code path.

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