Wire up the nway_reset callback to phy_ethtool_nway_reset() so that ethtool -r can restart PHY autonegotiation. The phylib helper handles PHY locking and returns -ENODEV when the interface has no attached PHY. Acked-by: Maciej W. Rozycki Reviewed-by: Daniel Machon Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/sb1250-mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/broadcom/sb1250-mac.c b/drivers/net/ethernet/broadcom/sb1250-mac.c index 546415d3134c..433aa1e24439 100644 --- a/drivers/net/ethernet/broadcom/sb1250-mac.c +++ b/drivers/net/ethernet/broadcom/sb1250-mac.c @@ -2129,6 +2129,7 @@ static void sbmac_setmulti(struct sbmac_softc *sc) } static const struct ethtool_ops sbmac_ethtool_ops = { + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_link_ksettings = phy_ethtool_get_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings, -- 2.53.0