Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143867
b: refs/heads/master
c: ee33c58
h: refs/heads/master
i:
  143865: 27e4bc8
  143863: 91ee3f6
v: v3
  • Loading branch information
Erik Waling authored and David S. Miller committed Apr 17, 2009
1 parent f7f985e commit 5583b70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 2f3889f42ec7c2b0c3049ecdd8e4687b6930779a
refs/heads/master: ee33c58541bae92669fe64a39f695ab533d0de14
10 changes: 6 additions & 4 deletions trunk/drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,11 @@ static void macb_tx(struct macb *bp)
dev_dbg(&bp->pdev->dev, "macb_tx status = %02lx\n",
(unsigned long)status);

if (status & MACB_BIT(UND)) {
if (status & (MACB_BIT(UND) | MACB_BIT(TSR_RLE))) {
int i;
printk(KERN_ERR "%s: TX underrun, resetting buffers\n",
bp->dev->name);
printk(KERN_ERR "%s: TX %s, resetting buffers\n",
bp->dev->name, status & MACB_BIT(UND) ?
"underrun" : "retry limit exceeded");

/* Transfer ongoing, disable transmitter, to avoid confusion */
if (status & MACB_BIT(TGO))
Expand Down Expand Up @@ -590,7 +591,8 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id)
}
}

if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND)))
if (status & (MACB_BIT(TCOMP) | MACB_BIT(ISR_TUND) |
MACB_BIT(ISR_RLE)))
macb_tx(bp);

/*
Expand Down

0 comments on commit 5583b70

Please sign in to comment.