[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161115180644.3941-4-f.fainelli@gmail.com>
Date: Tue, 15 Nov 2016 10:06:32 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, andrew@...n.ch, tremyfr@...il.com,
Florian Fainelli <f.fainelli@...il.com>,
bcm-kernel-feedback-list@...adcom.com (maintainer:BROADCOM BCM63XX ARM
ARCHITECTURE), Arnd Bergmann <arnd@...db.de>,
"xypron.glpk@....de" <xypron.glpk@....de>,
Jarod Wilson <jarod@...hat.com>,
Thierry Reding <treding@...dia.com>,
linux-arm-kernel@...ts.infradead.org (moderated list:BROADCOM BCM63XX
ARM ARCHITECTURE), linux-kernel@...r.kernel.org (open list)
Subject: [PATCH 03/15] net: bcm63xx_enet: Utilize phy_ethtool_nway_reset
Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
---
drivers/net/ethernet/broadcom/bcm63xx_enet.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 5c7acef1de2e..a43ab90c051e 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1434,11 +1434,8 @@ static int bcm_enet_nway_reset(struct net_device *dev)
struct bcm_enet_priv *priv;
priv = netdev_priv(dev);
- if (priv->has_phy) {
- if (!dev->phydev)
- return -ENODEV;
- return genphy_restart_aneg(dev->phydev);
- }
+ if (priv->has_phy)
+ return phy_ethtool_nway_reset(dev),
return -EOPNOTSUPP;
}
--
2.9.3
Powered by blists - more mailing lists