spi: spi-fsl-dspi: Bug fix incorrect CS de-assert
authorHaikun Wang <haikun.wang@freescale.com>
Wed, 13 May 2015 10:12:15 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2015 20:54:24 +0000 (21:54 +0100)
commit9deef024a12ebae4965c89837f662905ac88944b
tree760d9c16deea663a87606ef5a1b7700580b33660
parentb787f68c36d49bb1d9236f403813641efa74a031
spi: spi-fsl-dspi: Bug fix incorrect CS de-assert

SPI chip select signal need to keep asserted between several
spi_transfer in the same spi_message usually.
But the driver will de-assert CS signal and the assert it between
serval spi_transfer in the same spi_message under some condiations.
This patch fix the bug.

Here is an example:
Assume you have two variables like the following,
struct spi_transfer a;
struct spi_transfer b;
if you send a spi_message only includes 'a' first,
and then you send a spi_message includes 'a' and 'b'
but without resetting 'a'.
Driver will de-assert CS and then assert CS between 'a' and 'b'.

Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c