All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] phylink: ensure the PHY interface mode is appropriately set
@ 2017-12-20 23:21 Russell King
  2017-12-22  8:31 ` Florian Fainelli
  2017-12-26  2:48 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Russell King @ 2017-12-20 23:21 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli; +Cc: netdev

When setting the ethtool settings, ensure that the validated PHY
interface mode is propagated to the current link settings, so that
2500BaseX can be selected.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index f7a777475762..e30339fca5cf 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -1136,6 +1136,7 @@ int phylink_ethtool_ksettings_set(struct phylink *pl,
 	mutex_lock(&pl->state_mutex);
 	/* Configure the MAC to match the new settings */
 	linkmode_copy(pl->link_config.advertising, our_kset.link_modes.advertising);
+	pl->link_config.interface = config.interface;
 	pl->link_config.speed = our_kset.base.speed;
 	pl->link_config.duplex = our_kset.base.duplex;
 	pl->link_config.an_enabled = our_kset.base.autoneg != AUTONEG_DISABLE;
-- 
2.7.4

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

* Re: [PATCH net] phylink: ensure the PHY interface mode is appropriately set
  2017-12-20 23:21 [PATCH net] phylink: ensure the PHY interface mode is appropriately set Russell King
@ 2017-12-22  8:31 ` Florian Fainelli
  2017-12-26  2:48 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2017-12-22  8:31 UTC (permalink / raw)
  To: Russell King, Andrew Lunn; +Cc: netdev

Le 12/20/17 à 15:21, Russell King a écrit :
> When setting the ethtool settings, ensure that the validated PHY
> interface mode is propagated to the current link settings, so that
> 2500BaseX can be selected.
> 
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Fixes: 9525ae83959b ("phylink: add phylink infrastructure")
-- 
Florian

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

* Re: [PATCH net] phylink: ensure the PHY interface mode is appropriately set
  2017-12-20 23:21 [PATCH net] phylink: ensure the PHY interface mode is appropriately set Russell King
  2017-12-22  8:31 ` Florian Fainelli
@ 2017-12-26  2:48 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-12-26  2:48 UTC (permalink / raw)
  To: rmk+kernel; +Cc: andrew, f.fainelli, netdev

From: Russell King <rmk+kernel@armlinux.org.uk>
Date: Wed, 20 Dec 2017 23:21:28 +0000

> When setting the ethtool settings, ensure that the validated PHY
> interface mode is propagated to the current link settings, so that
> 2500BaseX can be selected.
> 
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

Applied.

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

end of thread, other threads:[~2017-12-26  2:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-20 23:21 [PATCH net] phylink: ensure the PHY interface mode is appropriately set Russell King
2017-12-22  8:31 ` Florian Fainelli
2017-12-26  2:48 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.