diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2021-05-23 08:58:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-23 17:23:59 -0700 |
commit | 5d6c3d91ad722bad16346bcd3e839c7649e5dca4 (patch) | |
tree | 9647abeb8dd86e53c5b7171db573c361ad56f91a | |
parent | 2ae83ed289c0b9add3d5d4d045d5907c1fafc4e6 (diff) | |
download | linux-5d6c3d91ad722bad16346bcd3e839c7649e5dca4.tar.gz linux-5d6c3d91ad722bad16346bcd3e839c7649e5dca4.tar.bz2 linux-5d6c3d91ad722bad16346bcd3e839c7649e5dca4.zip |
net: r6040: Allow restarting auto-negotiation
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>
-rw-r--r-- | drivers/net/ethernet/rdc/r6040.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index ef78c2424668..47e9998b62f0 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c @@ -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 = { |