* [PATCH net] phylink: ensure AN is enabled
@ 2017-12-20 23:21 Russell King
2017-12-22 8:32 ` Florian Fainelli
2017-12-26 2:49 ` 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
Ensure that we mark AN as enabled at boot time, rather than leaving
it disabled. This is noticable if your SFP module is fiber, and you
it supports faster speeds than 1G with 2.5G support in place.
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 e30339fca5cf..db5d5726ced9 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -567,6 +567,7 @@ struct phylink *phylink_create(struct net_device *ndev,
pl->link_config.pause = MLO_PAUSE_AN;
pl->link_config.speed = SPEED_UNKNOWN;
pl->link_config.duplex = DUPLEX_UNKNOWN;
+ pl->link_config.an_enabled = true;
pl->ops = ops;
__set_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state);
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] phylink: ensure AN is enabled
2017-12-20 23:21 [PATCH net] phylink: ensure AN is enabled Russell King
@ 2017-12-22 8:32 ` Florian Fainelli
2017-12-26 2:49 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2017-12-22 8:32 UTC (permalink / raw)
To: Russell King, Andrew Lunn; +Cc: netdev
Le 12/20/17 à 15:21, Russell King a écrit :
> Ensure that we mark AN as enabled at boot time, rather than leaving
> it disabled. This is noticable if your SFP module is fiber, and you
> it supports faster speeds than 1G with 2.5G support in place.
(not worth a respin IMHO), s/you //?
>
> 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 AN is enabled
2017-12-20 23:21 [PATCH net] phylink: ensure AN is enabled Russell King
2017-12-22 8:32 ` Florian Fainelli
@ 2017-12-26 2:49 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-12-26 2:49 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:34 +0000
> Ensure that we mark AN as enabled at boot time, rather than leaving
> it disabled. This is noticable if your SFP module is fiber, and you
> it supports faster speeds than 1G with 2.5G support in place.
>
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Also applied, and both of these phlink fixes are queued up for -stable
as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-26 2:49 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 AN is enabled Russell King
2017-12-22 8:32 ` Florian Fainelli
2017-12-26 2:49 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox