Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276960
b: refs/heads/master
c: 7746ab0
h: refs/heads/master
v: v3
  • Loading branch information
Ilya Yanok authored and David S. Miller committed Dec 19, 2011
1 parent 1281ed2 commit 50c0437
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2692ba61a82203404abd7dd2a027bda962861f74
refs/heads/master: 7746ab0abb512826540a9a0c917519d11a7bf392
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/ti/davinci_cpdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,13 @@ int cpdma_chan_stop(struct cpdma_chan *chan)
chan_write(chan, cp, CPDMA_TEARDOWN_VALUE);

/* handle completed packets */
spin_unlock_irqrestore(&chan->lock, flags);
do {
ret = __cpdma_chan_process(chan);
if (ret < 0)
break;
} while ((ret & CPDMA_DESC_TD_COMPLETE) == 0);
spin_lock_irqsave(&chan->lock, flags);

/* remaining packets haven't been tx/rx'ed, clean them up */
while (chan->head) {
Expand Down

0 comments on commit 50c0437

Please sign in to comment.