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>,
Tobias Klauser <tklauser@distanz.ch>,
Colin Ian King <colin.king@canonical.com>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset
Date: Tue, 15 Nov 2016 11:19:46 -0800 [thread overview]
Message-ID: <20161115191949.15361-3-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/ethoc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index c044667a0a25..6456c180114b 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev,
const struct ethtool_ops ethoc_ethtool_ops = {
.get_regs_len = ethoc_get_regs_len,
.get_regs = ethoc_get_regs,
+ .nway_reset = phy_ethtool_nway_reset,
.get_link = ethtool_op_get_link,
.get_ringparam = ethoc_get_ringparam,
.set_ringparam = ethoc_set_ringparam,
--
2.9.3
next prev parent reply other threads:[~2016-11-15 19:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20161115191949.15361-1-f.fainelli@gmail.com>
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 ` Florian Fainelli [this message]
2016-11-16 7:38 ` [PATCH net-next 2/5] net: ethoc: " Tobias Klauser
2016-11-15 19:19 ` [PATCH net-next 3/5] net: ethernet: mvneta: " Florian Fainelli
2016-11-15 19:19 ` [PATCH net-next 4/5] net: ethernet: mvpp2: " Florian Fainelli
2016-11-15 19:19 ` [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: " Florian Fainelli
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-3-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tklauser@distanz.ch \
--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