Ver Fonte

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>
stephen hemminger há 13 anos atrás
pai
commit
19f9ad7893
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      drivers/net/ethernet/marvell/skge.c

+ 1 - 0
drivers/net/ethernet/marvell/skge.c

@@ -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);