summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Buchwitz <nb@tipi-net.de>2026-02-24 17:57:23 +0300
committerJakub Kicinski <kuba@kernel.org>2026-02-26 06:22:32 +0300
commit45ce4b753a5047c2e61c45c9d8d878b835b39c14 (patch)
tree648aca3d2aded9b5f75780409a21b1da03039961
parent23a611b9b3bdcad2c63f291f14a9ea0ac50cc509 (diff)
downloadlinux-45ce4b753a5047c2e61c45c9d8d878b835b39c14.tar.xz
net: cadence: macb: add ethtool nway_reset support
Wire phy_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> Link: https://patch.msgid.link/20260224145723.49450-1-nb@tipi-net.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/ethernet/cadence/macb_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 43cd013bb70e..0b450b72d09c 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -3945,6 +3945,7 @@ static const struct ethtool_ops gem_ethtool_ops = {
.get_rxnfc = gem_get_rxnfc,
.set_rxnfc = gem_set_rxnfc,
.get_rx_ring_count = gem_get_rx_ring_count,
+ .nway_reset = phy_ethtool_nway_reset,
};
static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)