skge: don't assert carrier until link is up
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.
Signed-off-by Stephen Hemminger <[email protected]>
---
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);
From: Stephen Hemminger <[email protected]>
Date: Thu, 19 Jan 2012 16:35:25 -0800
Quoted 5 lines
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 <[email protected]>
Applied.