]> Pileus Git - ~andy/linux/commit
spi/bfin_spi: fix CS handling
authorBarry Song <barry.song@analog.com>
Wed, 17 Jun 2009 10:10:53 +0000 (10:10 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 18 Oct 2010 06:49:30 +0000 (02:49 -0400)
commit8221610e9990e7ee542a4e508d278302af8a9e75
treec08fca285205f621061adbb95f876cecd6700157
parentf6a6d96685be6e784849d067b44acb831f595417
spi/bfin_spi: fix CS handling

The CS helper functions were toggling both the Flag Enable and the Flag
Value bits, but the Flag Value bit is ignored if the corresponding Flag
Enable bit is cleared.  So under high speed transactions, the CS sometimes
would not toggle properly.

Since it makes no sense to toggle the Flag Enable bit dynamically when we
actually want to control the Flag Value, do this when setting up the device
and then only handle toggling of the CS value during runtime.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/spi/spi_bfin5xx.c