Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203669
b: refs/heads/master
c: 4bee1f9
h: refs/heads/master
i:
  203667: 74b2cea
v: v3
  • Loading branch information
Wolfram Sang authored and David S. Miller committed Jul 22, 2010
1 parent adcaece commit 42800c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8cd47ea19bf8c6f9d3a41b3c312237d007138ae0
refs/heads/master: 4bee1f9ac066ef0350b961eab9fedc4d0bd0a549
7 changes: 4 additions & 3 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ static unsigned char fec_mac_default[] = {
#define FEC_ENET_MII ((uint)0x00800000) /* MII interrupt */
#define FEC_ENET_EBERR ((uint)0x00400000) /* SDMA bus error */

#define FEC_DEFAULT_IMASK (FEC_ENET_TXF | FEC_ENET_RXF | FEC_ENET_MII)

/* The FEC stores dest/src/type, data, and checksum for receive packets.
*/
#define PKT_MAXBUF_SIZE 1518
Expand Down Expand Up @@ -1213,8 +1215,7 @@ fec_restart(struct net_device *dev, int duplex)
writel(0, fep->hwp + FEC_R_DES_ACTIVE);

/* Enable interrupts we wish to service */
writel(FEC_ENET_TXF | FEC_ENET_RXF | FEC_ENET_MII,
fep->hwp + FEC_IMASK);
writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
}

static void
Expand All @@ -1233,8 +1234,8 @@ fec_stop(struct net_device *dev)
/* Whack a reset. We should wait for this. */
writel(1, fep->hwp + FEC_ECNTRL);
udelay(10);

writel(fep->phy_speed, fep->hwp + FEC_MII_SPEED);
writel(FEC_DEFAULT_IMASK, fep->hwp + FEC_IMASK);
}

static int __devinit
Expand Down

0 comments on commit 42800c2

Please sign in to comment.