Skip to contentSkip to conversation

skge: don't assert carrier until link is up

PATCH Applied Stephen Hemminger 2 participants 2 messages Jan 20, 2012 – Jan 22, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 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.

---
This should go to -stable since reporting bogus link up can break lots of things.

drivers/net/ethernet/marvell/skge.c +1 -0
@@ -2576,6 +2576,7 @@ static int skge_up(struct net_device *de
 	}
 
 	/* Initialize MAC */
+	netif_carrier_off(dev);
 	spin_lock_bh(&hw->phy_lock);
 	if (is_genesis(hw))
 		genesis_mac_init(hw, port);