]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: cadence: macb: add ethtool nway_reset support
authorNicolai Buchwitz <nb@tipi-net.de>
Tue, 24 Feb 2026 14:57:23 +0000 (15:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 03:22:32 +0000 (19:22 -0800)
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>
drivers/net/ethernet/cadence/macb_main.c

index 43cd013bb70e6bd08a31a0826364e4f34c0e0b89..0b450b72d09caa94dc6c52ba9e1da1910b21b296 100644 (file)
@@ -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)