Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41503
b: refs/heads/master
c: e242040
h: refs/heads/master
i:
  41501: d203215
  41499: f4572c7
  41495: e13d9cd
  41487: 7c1d8b4
  41471: 8672d41
v: v3
  • Loading branch information
Jesse Huang authored and Jeff Garzik committed Dec 2, 2006
1 parent de6dd69 commit 17f2ad4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: ac7468e923278cdcb202f8aa992d8f2776f8344c
refs/heads/master: e242040df1da94a9a3daa98ea5539e2b52502bb4
8 changes: 2 additions & 6 deletions trunk/drivers/net/sundance.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ enum alta_offsets {
ASICCtrl = 0x30,
EEData = 0x34,
EECtrl = 0x36,
TxStartThresh = 0x3c,
RxEarlyThresh = 0x3e,
FlashAddr = 0x40,
FlashData = 0x44,
TxStatus = 0x46,
Expand Down Expand Up @@ -1111,6 +1109,7 @@ static irqreturn_t intr_handler(int irq, void *dev_instance)
int tx_cnt;
int tx_status;
int handled = 0;
int i;


do {
Expand Down Expand Up @@ -1153,17 +1152,14 @@ static irqreturn_t intr_handler(int irq, void *dev_instance)
np->stats.tx_fifo_errors++;
if (tx_status & 0x02)
np->stats.tx_window_errors++;

/*
** This reset has been verified on
** DFE-580TX boards ! phdm@macqel.be.
*/
if (tx_status & 0x10) { /* TxUnderrun */
unsigned short txthreshold;

txthreshold = ioread16 (ioaddr + TxStartThresh);
/* Restart Tx FIFO and transmitter */
sundance_reset(dev, (NetworkReset|FIFOReset|TxReset) << 16);
iowrite16 (txthreshold, ioaddr + TxStartThresh);
/* No need to reset the Tx pointer here */
}
/* Restart the Tx. */
Expand Down

0 comments on commit 17f2ad4

Please sign in to comment.