Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122847
b: refs/heads/master
c: 3e7c469
h: refs/heads/master
i:
  122845: f882ad3
  122843: 8db7d41
  122839: ecacd3b
  122831: 8709e59
  122815: 1a4814e
v: v3
  • Loading branch information
Joe Chou authored and David S. Miller committed Dec 23, 2008
1 parent 5e77840 commit ea3d44a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 11e5e8f5d14a1229706576184d2cf4c4556ed94c
refs/heads/master: 3e7c469f07ff14cbf9a814739e1fc99a863e0943
9 changes: 7 additions & 2 deletions trunk/drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,8 +680,10 @@ static irqreturn_t r6040_interrupt(int irq, void *dev_id)
struct net_device *dev = dev_id;
struct r6040_private *lp = netdev_priv(dev);
void __iomem *ioaddr = lp->base;
u16 status;
u16 misr, status;

/* Save MIER */
misr = ioread16(ioaddr + MIER);
/* Mask off RDC MAC interrupt */
iowrite16(MSK_INT, ioaddr + MIER);
/* Read MISR status and clear */
Expand All @@ -701,14 +703,17 @@ static irqreturn_t r6040_interrupt(int irq, void *dev_id)
dev->stats.rx_fifo_errors++;

/* Mask off RX interrupt */
iowrite16(ioread16(ioaddr + MIER) & ~RX_INTS, ioaddr + MIER);
misr &= ~RX_INTS;
netif_rx_schedule(dev, &lp->napi);
}

/* TX interrupt request */
if (status & TX_INTS)
r6040_tx(dev);

/* Restore RDC MAC interrupt */
iowrite16(misr, ioaddr + MIER);

return IRQ_HANDLED;
}

Expand Down

0 comments on commit ea3d44a

Please sign in to comment.