Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299762
b: refs/heads/master
c: 2431a81
h: refs/heads/master
v: v3
  • Loading branch information
Scott Jiang authored and Grant Likely committed Apr 27, 2012
1 parent 533ba04 commit 6f456be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 128465ca7c0775609b1c24f66cd6bddac5f59c9b
refs/heads/master: 2431a8154634027ce3915200699f26fb3725a1f2
5 changes: 4 additions & 1 deletion trunk/drivers/spi/spi-bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ static void bfin_spi_pump_transfers(unsigned long data)
if (message->state == DONE_STATE) {
dev_dbg(&drv_data->pdev->dev, "transfer: all done!\n");
message->status = 0;
bfin_spi_flush(drv_data);
bfin_spi_giveback(drv_data);
return;
}
Expand Down Expand Up @@ -870,8 +871,10 @@ static void bfin_spi_pump_transfers(unsigned long data)
message->actual_length += drv_data->len_in_bytes;
/* Move to next transfer of this msg */
message->state = bfin_spi_next_transfer(drv_data);
if (drv_data->cs_change)
if (drv_data->cs_change && message->state != DONE_STATE) {
bfin_spi_flush(drv_data);
bfin_spi_cs_deactive(drv_data, chip);
}
}

/* Schedule next transfer tasklet */
Expand Down

0 comments on commit 6f456be

Please sign in to comment.