93b61bddc1
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Kbuild | ||
atomic.h | ||
auxvec.h | ||
bfin-global.h | ||
bfin5xx_spi.h | ||
bfin_sdh.h | ||
bfin_simple_timer.h | ||
bfin_sport.h | ||
bfrom.h | ||
bitops.h | ||
blackfin.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
cdef_LPBlackfin.h | ||
checksum.h | ||
clocks.h | ||
context.S | ||
cplb.h | ||
cplbinit.h | ||
cpu.h | ||
cputime.h | ||
current.h | ||
def_LPBlackfin.h | ||
delay.h | ||
device.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
dpmc.h | ||
early_printk.h | ||
elf.h | ||
emergency-restart.h | ||
entry.h | ||
errno.h | ||
fb.h | ||
fcntl.h | ||
fixed_code.h | ||
flat.h | ||
ftrace.h | ||
futex.h | ||
gpio.h | ||
gptimers.h | ||
hardirq.h | ||
hw_irq.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
ipcbuf.h | ||
ipipe.h | ||
ipipe_base.h | ||
irq.h | ||
irq_handler.h | ||
irq_regs.h | ||
kdebug.h | ||
kgdb.h | ||
kmap_types.h | ||
l1layout.h | ||
linkage.h | ||
local.h | ||
mem_init.h | ||
mem_map.h | ||
mman.h | ||
mmu.h | ||
mmu_context.h | ||
module.h | ||
msgbuf.h | ||
mutex-dec.h | ||
mutex.h | ||
nand.h | ||
page.h | ||
page_offset.h | ||
param.h | ||
pci.h | ||
pda.h | ||
percpu.h | ||
pgalloc.h | ||
pgtable.h | ||
poll.h | ||
portmux.h | ||
posix_types.h | ||
processor.h | ||
ptrace.h | ||
reboot.h | ||
resource.h | ||
rwlock.h | ||
scatterlist.h | ||
sections.h | ||
segment.h | ||
sembuf.h | ||
serial.h | ||
setup.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
socket.h | ||
sockios.h | ||
spinlock.h | ||
spinlock_types.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
swab.h | ||
system.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
trace.h | ||
traps.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
xor.h |