Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279418
b: refs/heads/master
c: 58dbc69
h: refs/heads/master
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 4, 2012
1 parent 1977544 commit ffc0e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 4e16d6ebd65b4f2c4e3f780b4c5704beef64019c
refs/heads/master: 58dbc691e6ca6689402424db60f4a54745a38c67
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/rdc/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static void r6040_init_mac_regs(struct net_device *dev)
iowrite16(MAC_RST, ioaddr + MCR1);
while (limit--) {
cmd = ioread16(ioaddr + MCR1);
if (cmd & 0x1)
if (cmd & MAC_RST)
break;
}
/* Reset internal state machine */
Expand Down Expand Up @@ -453,7 +453,7 @@ static void r6040_down(struct net_device *dev)
iowrite16(MAC_RST, ioaddr + MCR1); /* Reset RDC MAC */
while (limit--) {
cmd = ioread16(ioaddr + MCR1);
if (cmd & 0x1)
if (cmd & MAC_RST)
break;
}

Expand Down Expand Up @@ -735,7 +735,7 @@ static void r6040_mac_address(struct net_device *dev)
u16 *adrp;

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

0 comments on commit ffc0e9b

Please sign in to comment.