skge: don't assert carrier until link is up
Skge device would assert carrier (link up) as soon as network device open was called, rather than waiting until PHY has detected link. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a42b4799c6
commit
19f9ad7893
1 changed files with 1 additions and 0 deletions
|
@ -2576,6 +2576,7 @@ static int skge_up(struct net_device *dev)
|
|||
}
|
||||
|
||||
/* Initialize MAC */
|
||||
netif_carrier_off(dev);
|
||||
spin_lock_bh(&hw->phy_lock);
|
||||
if (is_genesis(hw))
|
||||
genesis_mac_init(hw, port);
|
||||
|
|
Loading…
Reference in a new issue