[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fc57fba2-26c2-4b8a-b0f5-1b3c4d1b9bef@lunn.ch>
Date: Sat, 15 Nov 2025 21:36:44 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Wei Fang <wei.fang@....com>
Cc: linux@...linux.org.uk, hkallweit1@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
eric@...int.com, maxime.chevallier@...tlin.com, imx@...ts.linux.dev,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: phylink: add missing supported link modes for
the fixed-link
On Fri, Nov 14, 2025 at 01:28:08PM +0800, Wei Fang wrote:
> Pause, Asym_Pause and Autoneg bits are not set when pl->supported is
> initialized, so these link modes will not work for the fixed-link.
>
> Fixes: de7d3f87be3c ("net: phylink: Use phy_caps_lookup for fixed-link configuration")
> Signed-off-by: Wei Fang <wei.fang@....com>
> ---
> drivers/net/phy/phylink.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
> index 9d7799ea1c17..918244308215 100644
> --- a/drivers/net/phy/phylink.c
> +++ b/drivers/net/phy/phylink.c
> @@ -637,6 +637,9 @@ static int phylink_validate(struct phylink *pl, unsigned long *supported,
>
> static void phylink_fill_fixedlink_supported(unsigned long *supported)
> {
> + linkmode_set_bit(ETHTOOL_LINK_MODE_Pause_BIT, supported);
> + linkmode_set_bit(ETHTOOL_LINK_MODE_Asym_Pause_BIT, supported);
> + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, supported);
Do these make sense? There is no PHY, so there is no autoneg? So why
is autoneg in supported?
You can force pause at the MAC with ethtool:
ethtool -A|--pause devname [autoneg on|off] [rx on|off] [tx on|off]
with autoneg off, rx and tx are directly applied to the MAC. But to do
that, are these bits needed in supported?
Maybe you should explain what problem you are seeing?
Andrew
Powered by blists - more mailing lists