提交 33f18c96 编写于 作者: H Heiner Kallweit 提交者: David S. Miller

net: ethernet: don't set phylib state CHANGELINK in drivers

After phy_start() phylib takes care of all needed actions, including
aneg settings and checking link state. There's no need to set state
PHY_CHANGELINK in drivers.
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 624b66f8
...@@ -940,11 +940,8 @@ static int au1000_open(struct net_device *dev) ...@@ -940,11 +940,8 @@ static int au1000_open(struct net_device *dev)
return retval; return retval;
} }
if (dev->phydev) { if (dev->phydev)
/* cause the PHY state machine to schedule a link state check */
dev->phydev->state = PHY_CHANGELINK;
phy_start(dev->phydev); phy_start(dev->phydev);
}
netif_start_queue(dev); netif_start_queue(dev);
......
...@@ -991,7 +991,6 @@ static int cpmac_open(struct net_device *dev) ...@@ -991,7 +991,6 @@ static int cpmac_open(struct net_device *dev)
cpmac_hw_start(dev); cpmac_hw_start(dev);
napi_enable(&priv->napi); napi_enable(&priv->napi);
dev->phydev->state = PHY_CHANGELINK;
phy_start(dev->phydev); phy_start(dev->phydev);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册