[PATCH net-next 5/5] net: phylink: provide fixed state for 1000base-X and 2500base-X
Eric Woudstra
ericwouds at gmail.com
Fri Jan 10 00:04:56 PST 2025
On 1/9/25 4:15 PM, Russell King (Oracle) wrote:
> When decoding clause 22 state, if in-band is disabled and using either
> 1000base-X or 2500base-X, rather than reporting link-down, we know the
> speed, and we only support full duplex. Pause modes taken from XPCS.
>
> This fixes a problem reported by Eric Woudstra.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
> ---
> drivers/net/phy/phylink.c | 29 +++++++++++++++++++----------
> 1 file changed, 19 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
After changing 'if (pcs->neg_mode)' to 'if (pcs && pcs->neg_mode)' in
patch 1/5, I have tested this patch-set and I get link up.
Tested-by: Eric Woudstra <ericwouds at gmail.com>
More information about the Linux-mediatek
mailing list