Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149777
b: refs/heads/master
c: fe957c4
h: refs/heads/master
i:
  149775: 77cbaa6
v: v3
  • Loading branch information
Sascha Hauer authored and David S. Miller committed Apr 16, 2009
1 parent 88ca0da commit e3d6c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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: f0b3fbeae11a526c3d308b691684589ee37c359b
refs/heads/master: fe957c40ec5e2763b9977c565beab3bde3aaf85b
18 changes: 8 additions & 10 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,8 @@ fec_enet_open(struct net_device *dev)
fep->sequence_done = 0;
fep->link = 0;

fec_restart(dev, 1);

if (fep->phy) {
mii_do_cmd(dev, fep->phy->ack_int);
mii_do_cmd(dev, fep->phy->config);
Expand All @@ -1505,18 +1507,14 @@ fec_enet_open(struct net_device *dev)
schedule();

mii_do_cmd(dev, fep->phy->startup);

/* Set the initial link state to true. A lot of hardware
* based on this device does not implement a PHY interrupt,
* so we are never notified of link change.
*/
fep->link = 1;
} else {
fep->link = 1; /* lets just try it and see */
/* no phy, go full duplex, it's most likely a hub chip */
fec_restart(dev, 1);
}

/* Set the initial link state to true. A lot of hardware
* based on this device does not implement a PHY interrupt,
* so we are never notified of link change.
*/
fep->link = 1;

netif_start_queue(dev);
fep->opened = 1;
return 0;
Expand Down

0 comments on commit e3d6c5b

Please sign in to comment.