[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241217160700.1b4256b4@fedora.home>
Date: Tue, 17 Dec 2024 16:07:00 +0100
From: Maxime Chevallier <maxime.chevallier@...tlin.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: "Russell King (Oracle)" <linux@...linux.org.uk>, Alexandre Torgue
<alexandre.torgue@...s.st.com>, Jose Abreu <joabreu@...opsys.com>, Andrew
Lunn <andrew+netdev@...n.ch>, davem@...emloft.net, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Maxime Coquelin
<mcoquelin.stm32@...il.com>, Alexis Lothoré
<alexis.lothore@...tlin.com>, Thomas Petazzoni
<thomas.petazzoni@...tlin.com>, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] net: stmmac: dwmac-socfpga: Set interface
modes from Lynx PCS as supported
On Tue, 17 Dec 2024 06:49:07 -0800
Jakub Kicinski <kuba@...nel.org> wrote:
> Let me triple check ;)
>
> On Tue, 17 Dec 2024 13:59:32 +0100 Maxime Chevallier wrote:
> > - The priv->phylink_config.supported_interfaces is incomplete on
> > dwmac-socfpga. Russell's patch 5 intersects these modes with that the
> ^^^^^^^^^^
> > PCS supports :
> >
> > + phy_interface_or(priv->phylink_config.supported_interfaces,
> ^^
> > + priv->phylink_config.supported_interfaces,
> > + pcs->supported_interfaces);
> >
> > So without patch 2 in the series, we'll be missing
> > PHY_INTERFACE_MODE_1000BASEX in the end result :)
>
> "Or" is a sum/union, not intersection.
>
> You set the bits in priv->phylink_config.supported_interfaces.
> Russell does:
>
> priv->phylink_config.supported_interfaces |=
> pcs->supported_interfaces;
>
> If I'm missing the point please repost once Russell's patches
> are merged :)
Erf no I was missing the point, time to catch-up on some sleep I
guess... I read an 'and' and it was firmly stuck in my mind...
nevermind then, patch 2 isn't required anymore...
Maxime
Powered by blists - more mailing lists