]> git.baikalelectronics.ru Git - kernel.git/commit
spi/omap2_mcspi: Verify TX reg is empty after TX only xfer with DMA
authorIlkka Koskinen <ilkka.koskinen@nokia.com>
Tue, 19 Oct 2010 14:07:31 +0000 (17:07 +0300)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 20 Oct 2010 16:43:24 +0000 (10:43 -0600)
commitf28a0441feb4380789ec3c2deb13553bf1d935f6
treec2d377ef63c95c824ba9c3415c3cbecdeb4cbe57
parent4ad6a5665974f0aa2b41fe27592541bffc102158
spi/omap2_mcspi: Verify TX reg is empty after TX only xfer with DMA

In case of TX only with DMA, the driver assumes that the data
has been transferred once DMA callback in invoked. However,
SPI's shift register may still contain data. Thus, the driver
is supposed to verify that the register is empty and the end of
the SPI transfer has been reached.

Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Tested-by: Tuomas Katila <ext-tuomas.2.katila@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/omap2_mcspi.c