Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218784
b: refs/heads/master
c: 3ac012a
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Aaberg authored and Dan Williams committed Sep 22, 2010
1 parent bfc29b9 commit 797743b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f6fd7f50f7059e5725a36885af52e54b9df96b2
refs/heads/master: 3ac012af3b1b3a6b373f3a9f19c5362974856c2c
6 changes: 6 additions & 0 deletions trunk/drivers/dma/ste_dma40.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,9 @@ static int d40_pause(struct dma_chan *chan)
int res = 0;
unsigned long flags;

if (!d40c->busy)
return 0;

spin_lock_irqsave(&d40c->lock, flags);

res = d40_channel_execute_command(d40c, D40_DMA_SUSPEND_REQ);
Expand All @@ -792,6 +795,9 @@ static int d40_resume(struct dma_chan *chan)
int res = 0;
unsigned long flags;

if (!d40c->busy)
return 0;

spin_lock_irqsave(&d40c->lock, flags);

if (d40c->base->rev == 0)
Expand Down

0 comments on commit 797743b

Please sign in to comment.