Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279419
b: refs/heads/master
c: e147763
h: refs/heads/master
i:
  279417: 1977544
  279415: 87cc52a
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 4, 2012
1 parent ffc0e9b commit 755a5f3
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 58dbc691e6ca6689402424db60f4a54745a38c67
refs/heads/master: e1477637967d0d8db3083bacb241c796c3c4f23b
5 changes: 3 additions & 2 deletions trunk/drivers/net/ethernet/rdc/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
#define PHY_CC 0x88 /* PHY status change configuration register */
#define PHY_ST 0x8A /* PHY status register */
#define MAC_SM 0xAC /* MAC status machine */
#define MAC_SM_RST 0x0002 /* MAC status machine reset */
#define MAC_ID 0xBE /* Identifier register */

#define TX_DCNT 0x80 /* TX descriptor count */
Expand Down Expand Up @@ -375,7 +376,7 @@ static void r6040_init_mac_regs(struct net_device *dev)
break;
}
/* Reset internal state machine */
iowrite16(2, ioaddr + MAC_SM);
iowrite16(MAC_SM_RST, ioaddr + MAC_SM);
iowrite16(0, ioaddr + MAC_SM);
mdelay(5);

Expand Down Expand Up @@ -736,7 +737,7 @@ static void r6040_mac_address(struct net_device *dev)

/* MAC operation register */
iowrite16(MAC_RST, ioaddr + MCR1); /* Reset MAC */
iowrite16(2, ioaddr + MAC_SM); /* Reset internal state machine */
iowrite16(MAC_SM_RST, ioaddr + MAC_SM); /* Reset internal state machine */
iowrite16(0, ioaddr + MAC_SM);
mdelay(5);

Expand Down

0 comments on commit 755a5f3

Please sign in to comment.