Skip to content

Commit

Permalink
spi: spi_bfin: bugfix for 8..16 bit word sizes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Bryan Wu authored and Linus Torvalds committed Dec 5, 2007
1 parent bb90eb0 commit c3061ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static void u16_cs_chg_reader(struct driver_data *drv_data)
cs_active(drv_data, chip);
dummy_read(drv_data);

while (drv_data->rx < drv_data->rx_end) {
while (drv_data->rx < drv_data->rx_end - 2) {
cs_deactive(drv_data, chip);

if (chip->cs_chg_udelay)
Expand Down

0 comments on commit c3061ab

Please sign in to comment.