Yi Li 2cf3683472 Blackfin SPI Driver: fix bug - spi controller driver does not assert/deassert CS correctly
This bug can be observed when two SPI devices are sharing the spi bus: One
device is set as SPI CS 7, another one is using SPI CS 4.

In spi_bfin5xx.c: cs_active(), cs_deactive() are used to control SPI_FLG
register.  From the debug bellow:

cs_active: flag: 0x7f91, chip->flag: 0x7f80, cs: 7
cs_active: flag: 0xef91, chip->flag: 0xef10, cs: 4

When device A (cs_7) activate CS 7, SPI_FLG is set as 0x7f91 (however,
SPI_FLG should be set as 0x7f80, or 0x6f91 if in broadcast mode).

Due to some HW bug (very possibly), if SPI_FLG is set as 0x7f91, SPISSEL7
is asserted, however SPISSEL4 will be asserted too (I can see this using
the scope).  This is unreasonable according to HRM.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
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
..
2009-04-07 08:31:03 -07:00
2009-04-05 02:14:15 -04:00
2009-04-06 16:06:27 +01:00
2009-03-30 21:55:25 +10:30
2009-04-06 14:40:07 -07:00
2009-04-05 00:32:25 +02:00
2009-04-01 08:59:23 -07:00
2009-04-02 00:40:41 +00:00
2009-04-07 08:05:38 -07:00
2009-04-05 02:14:15 -04:00
2009-04-05 02:14:15 -04:00
2009-04-02 11:19:57 +09:00
2009-03-27 20:13:20 -04:00
2009-04-05 00:32:22 +02:00