Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130129
b: refs/heads/master
c: 39eddb4
h: refs/heads/master
i:
  130127: 819327d
v: v3
  • Loading branch information
Richard Röjfors authored and David S. Miller committed Jan 20, 2009
1 parent 36a0d6b commit b0c7aeb
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 24e94de41e76134fad05552588fe01af2cab1494
refs/heads/master: 39eddb4c3970e9aadbc87b8a7cab7b4fefff077f
8 changes: 8 additions & 0 deletions trunk/drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ static void macb_tx(struct macb *bp)
printk(KERN_ERR "%s: TX underrun, resetting buffers\n",
bp->dev->name);

/* Transfer ongoing, disable transmitter, to avoid confusion */
if (status & MACB_BIT(TGO))
macb_writel(bp, NCR, macb_readl(bp, NCR) & ~MACB_BIT(TE));

head = bp->tx_head;

/*Mark all the buffer as used to avoid sending a lost buffer*/
Expand All @@ -343,6 +347,10 @@ static void macb_tx(struct macb *bp)
}

bp->tx_head = bp->tx_tail = 0;

/* Enable the transmitter again */
if (status & MACB_BIT(TGO))
macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TE));
}

if (!(status & MACB_BIT(COMP)))
Expand Down

0 comments on commit b0c7aeb

Please sign in to comment.