linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset
       [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
@ 2016-11-15 19:19 ` Florian Fainelli
  2016-11-17 16:38   ` Giuseppe CAVALLARO
  2016-11-15 19:19 ` [PATCH net-next 2/5] net: ethoc: " Florian Fainelli
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Florian Fainelli @ 2016-11-15 19:19 UTC (permalink / raw)
  To: netdev
  Cc: davem, andrew, tremyfr, Florian Fainelli, Giuseppe Cavallaro,
	Alexandre Torgue, open list

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

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset
       [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
  2016-11-15 19:19 ` [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset Florian Fainelli
@ 2016-11-15 19:19 ` Florian Fainelli
  2016-11-16  7:38   ` Tobias Klauser
  2016-11-15 19:19 ` [PATCH net-next 3/5] net: ethernet: mvneta: " Florian Fainelli
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Florian Fainelli @ 2016-11-15 19:19 UTC (permalink / raw)
  To: netdev
  Cc: davem, andrew, tremyfr, Florian Fainelli, Tobias Klauser,
	Colin Ian King, open list

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

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

diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index c044667a0a25..6456c180114b 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -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,
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH net-next 3/5] net: ethernet: mvneta: Implement ethtool::nway_reset
       [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
  2016-11-15 19:19 ` [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset Florian Fainelli
  2016-11-15 19:19 ` [PATCH net-next 2/5] net: ethoc: " Florian Fainelli
@ 2016-11-15 19:19 ` Florian Fainelli
  2016-11-15 19:19 ` [PATCH net-next 4/5] net: ethernet: mvpp2: " Florian Fainelli
  2016-11-15 19:19 ` [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: " Florian Fainelli
  4 siblings, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2016-11-15 19:19 UTC (permalink / raw)
  To: netdev
  Cc: davem, andrew, tremyfr, Florian Fainelli, Thomas Petazzoni, open list

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

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

diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index b85819ea8eea..87274d4ab102 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -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,
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH net-next 4/5] net: ethernet: mvpp2: Implement ethtool::nway_reset
       [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
                   ` (2 preceding siblings ...)
  2016-11-15 19:19 ` [PATCH net-next 3/5] net: ethernet: mvneta: " Florian Fainelli
@ 2016-11-15 19:19 ` Florian Fainelli
  2016-11-15 19:19 ` [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: " Florian Fainelli
  4 siblings, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2016-11-15 19:19 UTC (permalink / raw)
  To: netdev
  Cc: davem, andrew, tremyfr, Florian Fainelli, Jisheng Zhang,
	Marcin Wojtas, Jarod Wilson, Peter Chen, open list

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

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

diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c
index c8bf155cad94..ee857868bea5 100644
--- a/drivers/net/ethernet/marvell/mvpp2.c
+++ b/drivers/net/ethernet/marvell/mvpp2.c
@@ -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,
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: Implement ethtool::nway_reset
       [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
                   ` (3 preceding siblings ...)
  2016-11-15 19:19 ` [PATCH net-next 4/5] net: ethernet: mvpp2: " Florian Fainelli
@ 2016-11-15 19:19 ` Florian Fainelli
  4 siblings, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2016-11-15 19:19 UTC (permalink / raw)
  To: netdev
  Cc: davem, andrew, tremyfr, Florian Fainelli, Sergei Shtylyov,
	Jisheng Zhang, Peter Chen, Jarod Wilson, Florian Westphal,
	open list

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

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

diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c
index b78a838f306c..3af2814ada23 100644
--- a/drivers/net/ethernet/marvell/pxa168_eth.c
+++ b/drivers/net/ethernet/marvell/pxa168_eth.c
@@ -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,
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next 2/5] net: ethoc: Implement ethtool::nway_reset
  2016-11-15 19:19 ` [PATCH net-next 2/5] net: ethoc: " Florian Fainelli
@ 2016-11-16  7:38   ` Tobias Klauser
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Klauser @ 2016-11-16  7:38 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: netdev, davem, andrew, tremyfr, Colin Ian King, open list

On 2016-11-15 at 20:19:46 +0100, Florian Fainelli <f.fainelli@gmail.com> wrote:
> Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
> already using dev->phydev all over the place so this comes for free.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Reviewed-by: Tobias Klauser <tklauser@distanz.ch>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset
  2016-11-15 19:19 ` [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset Florian Fainelli
@ 2016-11-17 16:38   ` Giuseppe CAVALLARO
  0 siblings, 0 replies; 7+ messages in thread
From: Giuseppe CAVALLARO @ 2016-11-17 16:38 UTC (permalink / raw)
  To: Florian Fainelli, netdev
  Cc: davem, andrew, tremyfr, Alexandre Torgue, open list

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 <f.fainelli@gmail.com>

Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>

> ---
>  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,
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-17 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20161115191949.15361-1-f.fainelli@gmail.com>
2016-11-15 19:19 ` [PATCH net-next 1/5] net: stmmac: Implement ethtool::nway_reset Florian Fainelli
2016-11-17 16:38   ` Giuseppe CAVALLARO
2016-11-15 19:19 ` [PATCH net-next 2/5] net: ethoc: " Florian Fainelli
2016-11-16  7:38   ` Tobias Klauser
2016-11-15 19:19 ` [PATCH net-next 3/5] net: ethernet: mvneta: " Florian Fainelli
2016-11-15 19:19 ` [PATCH net-next 4/5] net: ethernet: mvpp2: " Florian Fainelli
2016-11-15 19:19 ` [PATCH net-next 5/5] net: ethernet: marvell: pxa168_eth: " Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).