original_kernel/drivers
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
..
acorn/char
acpi Pull dmi-2.6.24 into release branch 2008-01-23 23:50:01 -05:00
amba
ata
atm
auxdisplay
base
block
bluetooth
cdrom
char drm/i915: add support for E7221 chipset 2008-01-23 18:04:55 -08:00
clocksource
connector
cpufreq
cpuidle
crypto
dca
dio
dma
edac
eisa
firewire
firmware DMI: create dmi_get_slot() 2008-01-23 21:23:13 -05:00
hid
hwmon hwmon: (it87) request only Environment Controller ports 2008-01-22 07:21:38 -05:00
i2c
ide
ieee1394
infiniband
input [SPARC64]: Fix section error in sparcspkr 2008-01-21 22:34:31 -08:00
isdn
kvm
leds
lguest
macintosh
mca
md
media
message
mfd
misc
mmc
mtd
net sis190: scheduling while atomic error 2008-01-23 03:11:45 -08:00
nubus
of
oprofile
parisc
parport
pci
pcmcia
pnp
power
ps3
rapidio
rtc
s390
sbus
scsi [SCSI] initio: fix module hangs on loading 2008-01-23 17:07:33 -06:00
serial
sh
sn
spi spi: omap2_mcspi PIO RX fix 2008-01-24 14:06:44 -08:00
ssb
tc
telephony
uio
usb keyspan: fix oops 2008-01-21 19:39:41 -08:00
video s3c2410_fb: fix line length calculation 2008-01-21 19:39:41 -08:00
virtio
w1 W1: w1_therm.c is flagging 0C etc as invalid 2008-01-22 09:17:48 -08:00
watchdog
xen
zorro
Kconfig
Makefile