mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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 */
|
/* Initialize MAC */
|
||||||
|
netif_carrier_off(dev);
|
||||||
spin_lock_bh(&hw->phy_lock);
|
spin_lock_bh(&hw->phy_lock);
|
||||||
if (is_genesis(hw))
|
if (is_genesis(hw))
|
||||||
genesis_mac_init(hw, port);
|
genesis_mac_init(hw, port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue