Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307645
b: refs/heads/master
c: 7dfd2bd
h: refs/heads/master
i:
  307643: b889e72
v: v3
  • Loading branch information
Shubhrajyoti D authored and Grant Likely committed May 11, 2012
1 parent 67ad073 commit 1e0e185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 6d6467ee58b4cddd34b01d642d282a353dd57ce9
refs/heads/master: 7dfd2bd70228d1f8d468d58cb3d12ecd618479ed
4 changes: 2 additions & 2 deletions trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ static void spi_pump_messages(struct kthread_work *work)
/* Lock queue and check for queue work */
spin_lock_irqsave(&master->queue_lock, flags);
if (list_empty(&master->queue) || !master->running) {
if (master->busy) {
if (master->busy && master->unprepare_transfer_hardware) {
ret = master->unprepare_transfer_hardware(master);
if (ret) {
spin_unlock_irqrestore(&master->queue_lock, flags);
Expand Down Expand Up @@ -562,7 +562,7 @@ static void spi_pump_messages(struct kthread_work *work)
master->busy = true;
spin_unlock_irqrestore(&master->queue_lock, flags);

if (!was_busy) {
if (!was_busy && master->prepare_transfer_hardware) {
ret = master->prepare_transfer_hardware(master);
if (ret) {
dev_err(&master->dev,
Expand Down

0 comments on commit 1e0e185

Please sign in to comment.