Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280110
b: refs/heads/master
c: 0ad2dee
h: refs/heads/master
v: v3
  • Loading branch information
Virupax Sadashivpetimath authored and Linus Walleij committed Dec 1, 2011
1 parent ce35dc2 commit 64b0b03
Show file tree
Hide file tree
Showing 2 changed files with 6 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: d4b6af2e0e29278f2353c7c8721ddf2f2446414f
refs/heads/master: 0ad2deeab5d3fc80fc7cd85638f805830254ef1d
6 changes: 5 additions & 1 deletion trunk/drivers/spi/spi-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,8 +1512,12 @@ static void pump_messages(struct work_struct *work)
/* Lock queue and check for queue work */
spin_lock_irqsave(&pl022->queue_lock, flags);
if (list_empty(&pl022->queue) || !pl022->running) {
if (pl022->busy)
if (pl022->busy) {
/* nothing more to do - disable spi/ssp and power off */
writew((readw(SSP_CR1(pl022->virtbase)) &
(~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase));
pm_runtime_put(&pl022->adev->dev);
}
pl022->busy = false;
spin_unlock_irqrestore(&pl022->queue_lock, flags);
return;
Expand Down

0 comments on commit 64b0b03

Please sign in to comment.