diff options
author | Bryan Wu <bryan.wu@analog.com> | 2007-12-05 02:45:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-05 12:21:20 -0500 |
commit | c3061abb9e95920407288cba143dc1af0babf099 (patch) | |
tree | 2dcb35cfdbb210fe0c7b9bc5ae81741aa81baa26 /drivers | |
parent | bb90eb00b6c28c8be5a69c6b58d5a6924f6f2ad7 (diff) |
spi: spi_bfin: bugfix for 8..16 bit word sizes
Fix bug in u16_cs_chg_reader to read data_len-2 bytes data firstly, then read
out the last 2 bytes data
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi_bfin5xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index c4c4905e0aa1..25b0efc5910e 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c | |||
@@ -501,7 +501,7 @@ static void u16_cs_chg_reader(struct driver_data *drv_data) | |||
501 | cs_active(drv_data, chip); | 501 | cs_active(drv_data, chip); |
502 | dummy_read(drv_data); | 502 | dummy_read(drv_data); |
503 | 503 | ||
504 | while (drv_data->rx < drv_data->rx_end) { | 504 | while (drv_data->rx < drv_data->rx_end - 2) { |
505 | cs_deactive(drv_data, chip); | 505 | cs_deactive(drv_data, chip); |
506 | 506 | ||
507 | if (chip->cs_chg_udelay) | 507 | if (chip->cs_chg_udelay) |