original_kernel/drivers/spi
Kalle Valo feed9bab7b spi: omap2_mcspi PIO RX fix
Before transmission of the last word in PIO RX_ONLY mode rx+tx mode
is enabled:

	/* prevent last RX_ONLY read from triggering
	 * more word i/o: switch to rx+tx
	 */
	if (c == 0 && tx == NULL)
		mcspi_write_cs_reg(spi,
				OMAP2_MCSPI_CHCONF0, l);

But because c is decremented after the test, c will never be zero and
rx+tx will not be enabled. This breaks RX_ONLY mode PIO transfers.

Fix it by decrementing c in the beginning of the various I/O loops.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-24 14:06:44 -08:00
..
Kconfig
Makefile
at25.c
atmel_spi.c atmel_spi: reload RCR before TCR 2007-12-10 19:43:55 -08:00
atmel_spi.h
au1550_spi.c
mpc52xx_psc_spi.c
omap2_mcspi.c spi: omap2_mcspi PIO RX fix 2008-01-24 14:06:44 -08:00
omap_uwire.c
pxa2xx_spi.c
spi.c
spi_bfin5xx.c spi_bfin5xx: fix typo in description 2007-12-10 19:43:55 -08:00
spi_bitbang.c spi_bitbang: always grab lock with irqs blocked 2008-01-08 16:10:35 -08:00
spi_butterfly.c
spi_imx.c spi_imx: fix typo in description 2007-12-10 19:43:55 -08:00
spi_lm70llp.c
spi_mpc83xx.c
spi_s3c24xx.c
spi_s3c24xx_gpio.c
spi_txx9.c
spidev.c
tle62x0.c
xilinx_spi.c