tmp_suning_uos_patched/drivers
Wolfgang Muees 93b61bddc1 Blackfin SPI Driver: Make mmc_spi driver work on Blackfin
1. Rewrite of the non-dma data transfer functions to use only ONE mode
   of TIMOD (TIMOD=0x1).  With TIMOD=0, it was not possible to set the TX
   bit pattern.  So the TDBR = 0xFFFF inside the read calls won't work.

2. Clear SPI_RDBR before reading and before duplex transfer.
   Otherwise the garbage data in RDBR will get read.  Since mmc_spi uses a
   lot of duplex transfers, this is the main cause of mmc_spi failure.

3. Poll RXS for transfer completion.  Polling SPIF or TXS cannot
   guarantee transfer completion.  This may interrupt a transfer before it
   is finished.  Also this may leave garbage data in buffer and affect
   next transfer.

[Yi Li <yi.li@analog.com>: add a field "u16 idle_tx_val" in "struct
bfin5xx_spi_chip" to specify the value to transmit if no TX value
is supplied.]
Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de>
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-07 08:31:06 -07:00
..
accessibility
acpi
amba
ata
atm
auxdisplay
base
block
bluetooth
cdrom
char esp: fix section mismatch warning 2009-04-07 08:31:03 -07:00
clocksource
connector
cpufreq
cpuidle
crypto
dca
dio
dma
edac
eisa
firewire
firmware
gpio
gpu
hid
hwmon hwmon: add support for GMT G760A fan speed PWM controller 2009-04-07 08:31:03 -07:00
i2c i2c: Delete unused i2c-algo-sgi helper module 2009-04-06 18:12:25 +02:00
ide
idle
ieee1394
infiniband
input
isdn Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2009-04-06 18:05:43 -07:00
leds leds: introduce lp5521 led driver 2009-04-06 16:06:27 +01:00
lguest
macintosh
mca
md md/raid1: fix build breakage 2009-04-06 14:40:07 -07:00
media cx231xx: Convert to snd_card_create() 2009-04-06 21:44:53 -03:00
memstick
message
mfd
misc
mmc
mtd Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6 2009-04-06 15:00:00 -07:00
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2009-04-06 18:05:43 -07:00
nubus
of
oprofile
parisc
parport
pci PCI: Fix oops in pci_vpd_truncate 2009-04-07 08:05:38 -07:00
pcmcia
platform
pnp
power
ps3
rapidio
regulator
rtc
s390
sbus
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2009-04-06 13:24:49 -07:00
serial Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2009-04-07 07:40:55 -07:00
sh
sn
spi Blackfin SPI Driver: Make mmc_spi driver work on Blackfin 2009-04-07 08:31:06 -07:00
ssb
staging
tc
telephony
thermal
uio
usb symbol: Remove various bits of left over junk 2009-04-06 14:36:42 -07:00
uwb
video Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2009-04-07 07:40:55 -07:00
virtio
w1
watchdog powerpc/wdrtas: Update wdrtas_get_interval to use rtas_data_buf 2009-04-07 15:07:43 +10:00
xen
zorro
Kconfig
Makefile