lineage_android_kernel_xiao.../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 pata_pdc202xx_old: Fix crashes with ATAPI 2008-01-19 21:29:39 -08:00
atm [ATM] atm/suni.c: Fix section mismatch. 2008-01-20 20:31:44 -08:00
auxdisplay
base
block cciss: section mismatch 2008-01-14 08:52:22 -08:00
bluetooth
cdrom
char drm/i915: add support for E7221 chipset 2008-01-23 18:04:55 -08:00
clocksource
connector
cpufreq cpufreq: Initialise default governor before use 2008-01-17 15:38:58 -08:00
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 i2c-sibyte: Fix an error path 2008-01-14 21:53:31 +01:00
ide
ieee1394
infiniband IB/ipath: Fix receiving UD messages with immediate data 2008-01-16 14:42:35 -08:00
input [SPARC64]: Fix section error in sparcspkr 2008-01-21 22:34:31 -08:00
isdn
kvm
leds
lguest Remove bogus duplicate CONFIG_LGUEST_GUEST entry. 2008-01-19 21:29:39 -08:00
macintosh
mca
md
media fix wrong sized spinlock flags argument 2008-01-17 15:42:30 -08:00
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 pnpacpi: print resource shortage message only once (more) 2008-01-17 15:38:58 -08:00
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 [WATCHDOG] Revert "Stop looking for device as soon as one is found" 2008-01-18 21:01:34 +00:00
xen
zorro
Kconfig
Makefile