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
..
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2009-04-07 08:31:06 -07:00
2009-01-07 23:14:38 +08:00
2008-08-27 10:51:02 +08:00
2009-03-28 20:38:17 +08:00
2008-11-18 17:48:22 +08:00
2009-01-07 23:14:39 +08:00
2009-01-07 23:14:39 +08:00
2008-11-18 17:48:22 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-14 19:56:50 -08:00
2009-01-07 23:14:39 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2009-02-04 16:49:45 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:38 +08:00
2009-01-07 23:14:38 +08:00
2009-01-07 23:14:38 +08:00
2009-01-07 23:14:38 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-02-04 16:49:45 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2009-01-07 23:14:38 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-16 15:40:05 +02:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-03-02 16:49:37 -05:00
2008-08-27 10:51:02 +08:00
2009-03-28 20:32:57 +08:00
2009-03-28 20:32:57 +08:00
2008-11-18 17:48:22 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-03-04 16:52:38 +08:00
2009-03-04 16:52:38 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-03-04 16:52:38 +08:00
2009-03-05 19:42:43 +08:00
2008-08-27 10:51:02 +08:00
2009-02-04 16:49:45 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:38 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-02-04 16:49:45 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2009-01-08 12:04:47 +00:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-02-04 16:49:45 +08:00
2009-03-06 14:33:58 +09:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:38 +08:00
2008-10-09 15:22:56 +08:00
2009-02-04 16:49:45 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2009-02-15 22:43:33 -08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:39 +08:00
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-02-01 11:01:23 +05:30
2009-01-07 23:14:39 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2009-03-04 16:52:38 +08:00
2008-08-27 10:51:02 +08:00
2008-10-16 23:55:41 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-10-08 14:43:47 +08:00
2008-08-27 10:51:02 +08:00
2009-01-07 23:14:38 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-08-27 10:51:02 +08:00
2008-11-18 17:48:22 +08:00