2016-11-15 19:20:23

by Florian Fainelli

[permalink] [raw]
Subject: [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset

Utilize the generic phy_ethtool_nway_reset() helper function to
implement an autonegotiation restart.

Signed-off-by: Florian Fainelli <[email protected]>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index 3fe9340b748f..0290d52330da 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -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,
--
2.9.3


2016-11-17 17:25:23

by Peppe CAVALLARO

[permalink] [raw]
Subject: Re: [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset

On 11/15/2016 8:19 PM, Florian Fainelli wrote:
> Utilize the generic phy_ethtool_nway_reset() helper function to
> implement an autonegotiation restart.
>
> Signed-off-by: Florian Fainelli <[email protected]>

Acked-by: Giuseppe Cavallaro <[email protected]>

> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> index 3fe9340b748f..0290d52330da 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
> @@ -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,
>