Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: microchip: lan743x: add ethtool nway_reset support

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>
Link: https://patch.msgid.link/20260223085442.42852-1-nb@tipi-net.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Nicolai Buchwitz and committed by
Paolo Abeni
8636385b e5a80f5e

+8
+8
drivers/net/ethernet/microchip/lan743x_ethtool.c
··· 1079 1079 return phylink_ethtool_set_eee(adapter->phylink, eee); 1080 1080 } 1081 1081 1082 + static int lan743x_ethtool_nway_reset(struct net_device *netdev) 1083 + { 1084 + struct lan743x_adapter *adapter = netdev_priv(netdev); 1085 + 1086 + return phylink_ethtool_nway_reset(adapter->phylink); 1087 + } 1088 + 1082 1089 static int 1083 1090 lan743x_ethtool_set_link_ksettings(struct net_device *netdev, 1084 1091 const struct ethtool_link_ksettings *cmd) ··· 1376 1369 .set_rxfh = lan743x_ethtool_set_rxfh, 1377 1370 .get_rxfh_fields = lan743x_ethtool_get_rxfh_fields, 1378 1371 .get_ts_info = lan743x_ethtool_get_ts_info, 1372 + .nway_reset = lan743x_ethtool_nway_reset, 1379 1373 .get_eee = lan743x_ethtool_get_eee, 1380 1374 .set_eee = lan743x_ethtool_set_eee, 1381 1375 .get_link_ksettings = lan743x_ethtool_get_link_ksettings,