summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-12-19 00:43:58 +0100
committerDavid S. Miller <davem@davemloft.net>2018-12-19 07:07:20 +0100
commit33f18c96afdf4da20014f834874e2820ee880cde (patch)
tree8b14ad4051bf1ec504e409103cf42286e853f3b3 /drivers/net/ethernet/ti
parentMAINTAINERS: Add a maintainer for Microsemi switches (diff)
downloadlinux-33f18c96afdf4da20014f834874e2820ee880cde.tar.xz
linux-33f18c96afdf4da20014f834874e2820ee880cde.zip
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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r--drivers/net/ethernet/ti/cpmac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c
index 9b8a30bf939b..810dfc7de1f9 100644
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
@@ -991,7 +991,6 @@ static int cpmac_open(struct net_device *dev)
cpmac_hw_start(dev);
napi_enable(&priv->napi);
- dev->phydev->state = PHY_CHANGELINK;
phy_start(dev->phydev);
return 0;