[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e8a11b23-3918-458f-8888-4ca32058968a@lunn.ch>
Date: Tue, 26 Nov 2024 22:18:56 +0100
From: Andrew Lunn <andrew@...n.ch>
To: "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc: Heiner Kallweit <hkallweit1@...il.com>,
Alexander Couzens <lynxis@...0.eu>,
Andrew Lunn <andrew+netdev@...n.ch>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Daniel Golle <daniel@...rotopia.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Ioana Ciornei <ioana.ciornei@....com>,
Jakub Kicinski <kuba@...nel.org>,
Jose Abreu <Jose.Abreu@...opsys.com>,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
Marcin Wojtas <marcin.s.wojtas@...il.com>,
Matthias Brugger <matthias.bgg@...il.com>, netdev@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH RFC net-next 15/16] net: phylink: add negotiation of
in-band capabilities
> + if (pcs_ib_caps && pcs_ib_caps != LINK_INBAND_DISABLE) {
> + /* PCS supports reporting in-band capabilities, and
> + * supports more than disable mode.
> + */
> + if (pcs_ib_caps & LINK_INBAND_DISABLE)
> + neg_mode = PHYLINK_PCS_NEG_OUTBAND;
> + else if (pcs_ib_caps & LINK_INBAND_ENABLE)
> + pcs_ib_only = true;
> + }
> +
> + if (phy_ib_caps && phy_ib_caps != LINK_INBAND_DISABLE) {
> + /* PHY supports in-band capabilities, and supports
> + * more than disable mode.
> + */
> + if (phy_ib_caps & LINK_INBAND_DISABLE)
> + pl->phy_ib_mode = LINK_INBAND_DISABLE;
> + else if (phy_ib_caps & LINK_INBAND_BYPASS)
> + pl->phy_ib_mode = LINK_INBAND_BYPASS;
> + else if (phy_ib_caps & LINK_INBAND_ENABLE)
> + phy_ib_only = true;
Looking at the different handling between PCS and PHY, i asked myself,
does PCS BYPASS exist? If it is invalid, i don't see a check if the
PCS is reporting it and should we be issuing a warning?
Andrew
Powered by blists - more mailing lists