netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: netdev@vger.kernel.org
Cc: andrew@lunn.ch, Florian Fainelli <f.fainelli@gmail.com>,
	Arnd Bergmann <arnd@arndb.de>,
	"xypron.glpk@gmx.de" <xypron.glpk@gmx.de>,
	open list <linux-kernel@vger.kernel.org>,
	Jarod Wilson <jarod@redhat.com>,
	"maintainer:BROADCOM BCM63XX ARM ARCHITECTURE"
	<bcm-kernel-feedback-list@broadcom.com>,
	Thierry Reding <treding@nvidia.com>,
	davem@davemloft.net,
	"moderated list:BROADCOM BCM63XX ARM ARCHITECTURE"
	<linux-arm-kernel@lists.infradead.org>,
	tremyfr@gmail.com
Subject: [PATCH 03/15] net: bcm63xx_enet: Utilize phy_ethtool_nway_reset
Date: Tue, 15 Nov 2016 10:06:32 -0800	[thread overview]
Message-ID: <20161115180644.3941-4-f.fainelli@gmail.com> (raw)
In-Reply-To: <20161115180644.3941-1-f.fainelli@gmail.com>

Signed-off-by: Florian Fainelli <f.fainelli@gmail.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

  parent reply	other threads:[~2016-11-15 18:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 18:06 [PATCH 00/15] net: phy: Centralize auto-negotation restart Florian Fainelli
2016-11-15 18:06 ` [PATCH 01/15] net: phy: Add phy_ethtool_nway_reset Florian Fainelli
2016-11-17 10:06   ` Krzysztof Hałasa
2016-11-15 18:06 ` [PATCH 02/15] net: nb8800: Utilize phy_ethtool_nway_reset Florian Fainelli
2016-11-15 18:06 ` Florian Fainelli [this message]
2016-11-15 19:59   ` [PATCH 03/15] net: bcm63xx_enet: " Heinrich Schuchardt
2016-11-15 20:15     ` Florian Fainelli
2016-11-15 18:06 ` [PATCH 04/15] net: mv643xx_eth: " Florian Fainelli
2016-11-15 19:28   ` Andrew Lunn
2016-11-15 18:06 ` [PATCH 05/15] net: smsc911x: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 06/15] net: ethernet: smsc9420: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 07/15] net: ethernet: ll_temac: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 08/15] net: ethernet: ixp4xx_eth: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 09/15] net: bcmgenet: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 10/15] net: fs_enet: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 11/15] net: fec: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 12/15] net: ethernet: ucc: " Florian Fainelli
2016-11-15 18:06 ` [PATCH 13/15] net: ethernet: lantiq_etop: " Florian Fainelli
2016-11-15 21:14   ` Langer, Thomas
2016-11-15 18:06 ` [PATCH 14/15] net: usb: ax88172x: " Florian Fainelli
     [not found] ` <20161115180644.3941-1-f.fainelli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-11-15 18:06   ` [PATCH 15/15] net: usb: lan78xx: " Florian Fainelli
2016-11-15 18:14     ` Woojung.Huh
2016-11-15 21:33 ` [PATCH 00/15] net: phy: Centralize auto-negotation restart David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161115180644.3941-4-f.fainelli@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=arnd@arndb.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=jarod@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=treding@nvidia.com \
    --cc=tremyfr@gmail.com \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).