Skip to content

Commit

Permalink
skge: don't assert carrier until link is up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jan 22, 2012
1 parent a42b479 commit 19f9ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/marvell/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19f9ad7

Please sign in to comment.