spi/s3c64xx: Flush FIFOs prior to cleaning up transfer
authorMark Brown <broonie@linaro.org>
Fri, 27 Sep 2013 19:10:26 +0000 (20:10 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 30 Sep 2013 11:53:35 +0000 (12:53 +0100)
commit67651b29ef15e5ef9897ed8cb9072222c4cf3432
treef5f33a4c05bfbb90ab682d57073717bfec9ea906
parent0cab71e7014dc73a84e1d14d9b02e39c48241580
spi/s3c64xx: Flush FIFOs prior to cleaning up transfer

Ensure that the FIFOs are fully drained before we deassert /CS or do any
delays that have been requested in order to ensure that the behaviour
visible on the bus matches that which was requested by the caller.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c