netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, andrew@lunn.ch, tremyfr@gmail.com,
	Florian Fainelli <f.fainelli@gmail.com>,
	Jisheng Zhang <jszhang@marvell.com>,
	Marcin Wojtas <mw@semihalf.com>, Jarod Wilson <jarod@redhat.com>,
	Peter Chen <peter.chen@nxp.com>,
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH net-next 4/5] net: ethernet: mvpp2: Implement ethtool::nway_reset
Date: Tue, 15 Nov 2016 11:19:48 -0800	[thread overview]
Message-ID: <20161115191949.15361-5-f.fainelli@gmail.com> (raw)
In-Reply-To: <20161115191949.15361-1-f.fainelli@gmail.com>

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/ethernet/marvell/mvpp2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c
index c8bf155cad94..ee857868bea5 100644
--- a/drivers/net/ethernet/marvell/mvpp2.c
+++ b/drivers/net/ethernet/marvell/mvpp2.c
@@ -5923,6 +5923,7 @@ static const struct net_device_ops mvpp2_netdev_ops = {
 };
 
 static const struct ethtool_ops mvpp2_eth_tool_ops = {
+	.nway_reset	= phy_ethtool_nway_reset,
 	.get_link	= ethtool_op_get_link,
 	.set_coalesce	= mvpp2_ethtool_set_coalesce,
 	.get_coalesce	= mvpp2_ethtool_get_coalesce,
-- 
2.9.3

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

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 19:19 [PATCH net-next 0/5] net: Implenent ethtool::nway_reset for a few drivers Florian Fainelli
2016-11-15 19:19 ` [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset Florian Fainelli
2016-11-17 16:38   ` Giuseppe CAVALLARO
2016-11-15 19:19 ` [PATCH net-next 2/5] net: ethoc: " Florian Fainelli
2016-11-16  7:38   ` Tobias Klauser
2016-11-15 19:19 ` [PATCH net-next 3/5] net: ethernet: mvneta: " Florian Fainelli
2016-11-15 19:19 ` Florian Fainelli [this message]
2016-11-15 19:19 ` [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: " Florian Fainelli
2016-11-16 18:44 ` [PATCH net-next 0/5] net: Implenent ethtool::nway_reset for a few drivers 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=20161115191949.15361-5-f.fainelli@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=jarod@redhat.com \
    --cc=jszhang@marvell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mw@semihalf.com \
    --cc=netdev@vger.kernel.org \
    --cc=peter.chen@nxp.com \
    --cc=tremyfr@gmail.com \
    /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).