Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362604
b: refs/heads/master
c: d202f05
h: refs/heads/master
v: v3
  • Loading branch information
Ludovic Desroches authored and Linus Torvalds committed Apr 18, 2013
1 parent 053c990 commit 85e3fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: ebe80544338a393e94b65995120c3028c80abc62
refs/heads/master: d202f05158442396033f416df376f8ece1f563df
9 changes: 4 additions & 5 deletions trunk/drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ static void atc_complete_all(struct at_dma_chan *atchan)

dev_vdbg(chan2dev(&atchan->chan_common), "complete all\n");

BUG_ON(atc_chan_is_enabled(atchan));

/*
* Submit queued descriptors ASAP, i.e. before we go through
* the completed ones.
Expand Down Expand Up @@ -368,6 +366,9 @@ static void atc_advance_work(struct at_dma_chan *atchan)
{
dev_vdbg(chan2dev(&atchan->chan_common), "advance_work\n");

if (atc_chan_is_enabled(atchan))
return;

if (list_empty(&atchan->active_list) ||
list_is_singular(&atchan->active_list)) {
atc_complete_all(atchan);
Expand Down Expand Up @@ -1078,9 +1079,7 @@ static void atc_issue_pending(struct dma_chan *chan)
return;

spin_lock_irqsave(&atchan->lock, flags);
if (!atc_chan_is_enabled(atchan)) {
atc_advance_work(atchan);
}
atc_advance_work(atchan);
spin_unlock_irqrestore(&atchan->lock, flags);
}

Expand Down

0 comments on commit 85e3fc9

Please sign in to comment.