net: Implenent ethtool::nway_reset for a few drivers
Subsystems (5)
cover net: Implenent ethtool::nway_reset for a few drivers
Hi all,
This patch series depends on "net: phy: Centralize auto-negotation restart" since it provides phy_ethtool_nway_reset as a helper function.
The drivers here already support PHYLIB, so there really is no reason why restarting auto-negotiation would not be possible with these.
Florian Fainelli (5):
net: stmmac: Implement ethtool::nway_reset
net: ethoc: Implement ethtool::nway_reset
net: ethernet: mvneta: Implement ethtool::nway_reset
net: ethernet: mvpp2: Implement ethtool::nway_reset
net: ethernet: marvell: pxa168_eth: Implement ethtool::nway_reset
drivers/net/ethernet/ethoc.c | 1 + drivers/net/ethernet/marvell/mvneta.c | 1 + drivers/net/ethernet/marvell/mvpp2.c | 1 + drivers/net/ethernet/marvell/pxa168_eth.c | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 + 5 files changed, 5 insertions(+)
Signature · 1 line
2.9.3
PATCH 1/5 net: stmmac: Implement ethtool::nway_reset
Utilize the generic phy_ethtool_nway_reset() helper function to implement an autonegotiation restart.
--- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +1 -0
@@ -870,6 +870,7 @@ static const struct ethtool_ops stmmac_ethtool_ops = { .get_regs = stmmac_ethtool_gregs, .get_regs_len = stmmac_ethtool_get_regs_len, .get_link = ethtool_op_get_link, + .nway_reset = phy_ethtool_nway_reset, .get_pauseparam = stmmac_get_pauseparam, .set_pauseparam = stmmac_set_pauseparam, .get_ethtool_stats = stmmac_get_ethtool_stats,
Signature · 1 line
2.9.3
Re: [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset
Quoted 4 lines · Florian Fainelli
Utilize the generic
phy_ethtool_nway_reset()helper function to implement an autonegotiation restart.Signed-off-by Florian Fainelli <[email protected]>
Quoted 17 lines
--- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +1
-0@@ -870,6 +870,7 @@ static const struct ethtool_ops stmmac_ethtool_ops = { .get_regs = stmmac_ethtool_gregs, .get_regs_len = stmmac_ethtool_get_regs_len, .get_link = ethtool_op_get_link, + .nway_reset = phy_ethtool_nway_reset, .get_pauseparam = stmmac_get_pauseparam, .set_pauseparam = stmmac_set_pauseparam, .get_ethtool_stats = stmmac_get_ethtool_stats,
PATCH 2/5 net: ethoc: Implement ethtool::nway_reset
In reply to Florian FainelliImplement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free.
--- drivers/net/ethernet/ethoc.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/ethoc.c +1 -0
@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev,const struct ethtool_ops ethoc_ethtool_ops = { .get_regs_len = ethoc_get_regs_len, .get_regs = ethoc_get_regs, + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_ringparam = ethoc_get_ringparam, .set_ringparam = ethoc_set_ringparam,
Signature · 1 line
2.9.3
Re: [PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset
Quoted 4 lines · Florian Fainelli
Implement
ethtool::nway_resetusingphy_ethtool_nway_reset. We are already usingdev->phydevall over the place so this comes for free.Signed-off-by Florian Fainelli <[email protected]>
PATCH 3/5 net: ethernet: mvneta: Implement ethtool::nway_reset
In reply to Florian FainelliImplement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free.
--- drivers/net/ethernet/marvell/mvneta.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/mvneta.c +1 -0
@@ -3811,6 +3811,7 @@ static const struct net_device_ops mvneta_netdev_ops = { };const struct ethtool_ops mvneta_eth_tool_ops = { + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .set_coalesce = mvneta_ethtool_set_coalesce, .get_coalesce = mvneta_ethtool_get_coalesce,
Signature · 1 line
2.9.3
PATCH 4/5 net: ethernet: mvpp2: Implement ethtool::nway_reset
In reply to Florian FainelliImplement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free.
--- drivers/net/ethernet/marvell/mvpp2.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/mvpp2.c +1 -0
@@ -5923,6 +5923,7 @@ static const struct net_device_ops mvpp2_netdev_ops = { };static const struct ethtool_ops mvpp2_eth_tool_ops = { + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .set_coalesce = mvpp2_ethtool_set_coalesce, .get_coalesce = mvpp2_ethtool_get_coalesce,
Signature · 1 line
2.9.3
PATCH 5/5 net: ethernet: marvell: pxa168_eth: Implement ethtool::nway_reset
In reply to Florian FainelliImplement ethtool::nway_reset using phy_ethtool_nway_reset. We are already using dev->phydev all over the place so this comes for free.
--- drivers/net/ethernet/marvell/pxa168_eth.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/pxa168_eth.c +1 -0
@@ -1393,6 +1393,7 @@ static void pxa168_get_drvinfo(struct net_device *dev,static const struct ethtool_ops pxa168_ethtool_ops = { .get_drvinfo = pxa168_get_drvinfo, + .nway_reset = phy_ethtool_nway_reset, .get_link = ethtool_op_get_link, .get_ts_info = ethtool_op_get_ts_info, .get_link_ksettings = pxa168_get_link_ksettings,
Signature · 1 line
2.9.3
David Miller
maintainerFrom: Florian Fainelli <[email protected]>
Date: Tue, 15 Nov 2016 11:19:44 -0800
Quoted 5 lines
This patch series depends on "net: phy: Centralize auto-negotation restart" since it provides
phy_ethtool_nway_resetas a helper function.The drivers here already support PHYLIB, so there really is no reason why restarting auto-negotiation would not be possible with these.
Series applied, thanks Florian.