OSDN Git Service

net: r6040: Allow restarting auto-negotiation
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 23 May 2021 15:58:42 +0000 (08:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 00:23:59 +0000 (17:23 -0700)
Use phy_ethtool_nway_reset() since the driver makes use of the PHY
library.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c

index ef78c24..47e9998 100644 (file)
@@ -943,6 +943,7 @@ static const struct ethtool_ops netdev_ethtool_ops = {
        .get_ts_info            = ethtool_op_get_ts_info,
        .get_link_ksettings     = phy_ethtool_get_link_ksettings,
        .set_link_ksettings     = phy_ethtool_set_link_ksettings,
+       .nway_reset             = phy_ethtool_nway_reset,
 };
 
 static const struct net_device_ops r6040_netdev_ops = {