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>
This commit is contained in:
Nicolai Buchwitz 2026-02-24 15:57:23 +01:00 committed by Jakub Kicinski
parent 23a611b9b3
commit 45ce4b753a

View 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)