Skip to content

Commit 54dbf3a

Browse files
committed
Merge branch 'nway-reset'
Florian Fainelli says: ==================== net: Implenent ethtool::nway_reset for a few drivers 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. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents fc3f914 + 13f0ac4 commit 54dbf3a

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

drivers/net/ethernet/ethoc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev,
966966
const struct ethtool_ops ethoc_ethtool_ops = {
967967
.get_regs_len = ethoc_get_regs_len,
968968
.get_regs = ethoc_get_regs,
969+
.nway_reset = phy_ethtool_nway_reset,
969970
.get_link = ethtool_op_get_link,
970971
.get_ringparam = ethoc_get_ringparam,
971972
.set_ringparam = ethoc_set_ringparam,

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3811,6 +3811,7 @@ static const struct net_device_ops mvneta_netdev_ops = {
38113811
};
38123812

38133813
const struct ethtool_ops mvneta_eth_tool_ops = {
3814+
.nway_reset = phy_ethtool_nway_reset,
38143815
.get_link = ethtool_op_get_link,
38153816
.set_coalesce = mvneta_ethtool_set_coalesce,
38163817
.get_coalesce = mvneta_ethtool_get_coalesce,

drivers/net/ethernet/marvell/mvpp2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5923,6 +5923,7 @@ static const struct net_device_ops mvpp2_netdev_ops = {
59235923
};
59245924

59255925
static const struct ethtool_ops mvpp2_eth_tool_ops = {
5926+
.nway_reset = phy_ethtool_nway_reset,
59265927
.get_link = ethtool_op_get_link,
59275928
.set_coalesce = mvpp2_ethtool_set_coalesce,
59285929
.get_coalesce = mvpp2_ethtool_get_coalesce,

drivers/net/ethernet/marvell/pxa168_eth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@ static void pxa168_get_drvinfo(struct net_device *dev,
13931393

13941394
static const struct ethtool_ops pxa168_ethtool_ops = {
13951395
.get_drvinfo = pxa168_get_drvinfo,
1396+
.nway_reset = phy_ethtool_nway_reset,
13961397
.get_link = ethtool_op_get_link,
13971398
.get_ts_info = ethtool_op_get_ts_info,
13981399
.get_link_ksettings = pxa168_get_link_ksettings,

drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ static const struct ethtool_ops stmmac_ethtool_ops = {
870870
.get_regs = stmmac_ethtool_gregs,
871871
.get_regs_len = stmmac_ethtool_get_regs_len,
872872
.get_link = ethtool_op_get_link,
873+
.nway_reset = phy_ethtool_nway_reset,
873874
.get_pauseparam = stmmac_get_pauseparam,
874875
.set_pauseparam = stmmac_set_pauseparam,
875876
.get_ethtool_stats = stmmac_get_ethtool_stats,

0 commit comments

Comments
 (0)