Skip to content

Commit f0d41dc

Browse files
committed
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>
1 parent 382c46c commit f0d41dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,6 +3912,7 @@ static const struct ethtool_ops gem_ethtool_ops = {
39123912
.set_ringparam = macb_set_ringparam,
39133913
.get_rxnfc = gem_get_rxnfc,
39143914
.set_rxnfc = gem_set_rxnfc,
3915+
.nway_reset = phy_ethtool_nway_reset,
39153916
};
39163917

39173918
static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)

0 commit comments

Comments
 (0)