diff mbox series

[net-next] net: r6040: Allow restarting auto-negotiation

Message ID 20210523155843.11395-1-f.fainelli@gmail.com (mailing list archive)
State Accepted
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: r6040: Allow restarting auto-negotiation | expand

Checks

Context Check Description
netdev/apply fail Patch does not apply to net-next
netdev/tree_selection success Clearly marked for net-next

Commit Message

Florian Fainelli May 23, 2021, 3:58 p.m. UTC
Use phy_ethtool_nway_reset() since the driver makes use of the PHY
library.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/ethernet/rdc/r6040.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andrew Lunn May 24, 2021, 12:24 p.m. UTC | #1
On Sun, May 23, 2021 at 08:58:42AM -0700, Florian Fainelli wrote:
> Use phy_ethtool_nway_reset() since the driver makes use of the PHY
> library.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
diff mbox series

Patch

diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c
index 80fee3a9b603..dd9286f520b6 100644
--- a/drivers/net/ethernet/rdc/r6040.c
+++ b/drivers/net/ethernet/rdc/r6040.c
@@ -972,6 +972,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,
 	.get_regs_len		= r6040_get_regs_len,
 	.get_regs		= r6040_get_regs,
 };