* [PATCH net-next] net: microchip: lan743x: add ethtool nway_reset support
@ 2026-02-23 8:54 Nicolai Buchwitz
2026-02-24 14:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Nicolai Buchwitz @ 2026-02-23 8:54 UTC (permalink / raw)
To: netdev
Cc: Nicolai Buchwitz, Russel King, Bryan Whitehead, UNGLinuxDriver,
Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Russell King, linux-kernel
Wire phylink_ethtool_nway_reset() as the .nway_reset ethtool operation,
allowing userspace to restart PHY autonegotiation via 'ethtool -r'.
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Reviewed-by: Russel King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/ethernet/microchip/lan743x_ethtool.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.c b/drivers/net/ethernet/microchip/lan743x_ethtool.c
index 8a3c1ecc7866..9195419ecee0 100644
--- a/drivers/net/ethernet/microchip/lan743x_ethtool.c
+++ b/drivers/net/ethernet/microchip/lan743x_ethtool.c
@@ -1079,6 +1079,13 @@ static int lan743x_ethtool_set_eee(struct net_device *netdev,
return phylink_ethtool_set_eee(adapter->phylink, eee);
}
+static int lan743x_ethtool_nway_reset(struct net_device *netdev)
+{
+ struct lan743x_adapter *adapter = netdev_priv(netdev);
+
+ return phylink_ethtool_nway_reset(adapter->phylink);
+}
+
static int
lan743x_ethtool_set_link_ksettings(struct net_device *netdev,
const struct ethtool_link_ksettings *cmd)
@@ -1369,6 +1376,7 @@ const struct ethtool_ops lan743x_ethtool_ops = {
.set_rxfh = lan743x_ethtool_set_rxfh,
.get_rxfh_fields = lan743x_ethtool_get_rxfh_fields,
.get_ts_info = lan743x_ethtool_get_ts_info,
+ .nway_reset = lan743x_ethtool_nway_reset,
.get_eee = lan743x_ethtool_get_eee,
.set_eee = lan743x_ethtool_set_eee,
.get_link_ksettings = lan743x_ethtool_get_link_ksettings,
--
2.39.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: microchip: lan743x: add ethtool nway_reset support
2026-02-23 8:54 [PATCH net-next] net: microchip: lan743x: add ethtool nway_reset support Nicolai Buchwitz
@ 2026-02-24 14:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-02-24 14:20 UTC (permalink / raw)
To: Nicolai Buchwitz
Cc: netdev, rmk+kernel, bryan.whitehead, UNGLinuxDriver,
andrew+netdev, davem, edumazet, kuba, pabeni, linux, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Mon, 23 Feb 2026 09:54:42 +0100 you wrote:
> Wire phylink_ethtool_nway_reset() as the .nway_reset ethtool operation,
> allowing userspace to restart PHY autonegotiation via 'ethtool -r'.
>
> Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
> Reviewed-by: Russel King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---
> drivers/net/ethernet/microchip/lan743x_ethtool.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Here is the summary with links:
- [net-next] net: microchip: lan743x: add ethtool nway_reset support
https://git.kernel.org/netdev/net-next/c/8636385b9f01
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-24 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 8:54 [PATCH net-next] net: microchip: lan743x: add ethtool nway_reset support Nicolai Buchwitz
2026-02-24 14:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox