netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii"
@ 2025-03-31 15:39 Vladimir Oltean
  2025-03-31 15:46 ` Russell King (Oracle)
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir Oltean @ 2025-03-31 15:39 UTC (permalink / raw)
  To: netdev
  Cc: Ioana Ciornei, Andrew Lunn, Heiner Kallweit, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Russell King (Oracle), Maxime Chevallier, linux-kernel

Added by commit ce312bbc2351 ("net: pcs: lynx: accept phy-mode =
"10g-qxgmii" and use in felix driver"), this mode broke when the
lynx_interfaces[] array was introduced to populate
lynx->pcs.supported_interfaces, because it is absent from there.

mscc_felix 0000:00:00.5: MAC returned PCS which does not support 10g-qxgmii
mscc_felix 0000:00:00.5: failed to validate link configuration for inband

In reality we should be querying the SerDes driver of the attached lane
to restrict which PHY modes are truly supported, but we currently lack
that infrastructure upstream, so just add 10g-qxgmii to the array.

Fixes: b0f88c1b9a53 ("net: pcs: lynx: fill in PCS supported_interfaces")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/net/pcs/pcs-lynx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c
index c0238360eb40..07c570e2d7c1 100644
--- a/drivers/net/pcs/pcs-lynx.c
+++ b/drivers/net/pcs/pcs-lynx.c
@@ -536,6 +536,7 @@ static const phy_interface_t lynx_interfaces[] = {
 	PHY_INTERFACE_MODE_2500BASEX,
 	PHY_INTERFACE_MODE_10GBASER,
 	PHY_INTERFACE_MODE_USXGMII,
+	PHY_INTERFACE_MODE_10G_QXGMII,
 };
 
 void lynx_pcs_set_supported_interfaces(struct phylink_pcs *pcs,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-31 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 15:39 [PATCH net] net: pcs: lynx: fix phylink validation regression for phy-mode = "10g-qxgmii" Vladimir Oltean
2025-03-31 15:46 ` Russell King (Oracle)
2025-03-31 15:54   ` Vladimir Oltean
2025-03-31 16:04     ` Russell King (Oracle)
2025-03-31 19:44       ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).