Netdev List
 help / color / mirror / Atom feed
* Re: [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R
  2026-09-22 19:40 [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R Vincent Jardin via B4 Relay
@ 2026-09-01 22:01 ` Maxime Chevallier
  2026-09-03  2:20 ` patchwork-bot+netdevbpf
  2026-09-03 21:52 ` Bradley Morgan
  2 siblings, 0 replies; 4+ messages in thread
From: Maxime Chevallier @ 2026-09-01 22:01 UTC (permalink / raw)
  To: vjardin, Ioana Ciornei, Andrew Lunn, Heiner Kallweit,
	Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: netdev, linux-kernel

Hi Vincent,

On 9/22/26 21:40, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@free.fr>
> 
> The Lynx PCS never supported 25GBASE-R. Add it, so that a 25G DPMAC on
> LX2160A can be driven by phylink.
> 
> The SerDes side had the mode since the commit
>   1cab8fba5073 ("phy: lynx-28g: add support for 25GBASER")
> and dpaa2-mac maps DPMAC_ETH_IF_CAUI to PHY_INTERFACE_MODE_25GBASER,
> but the PCS never handled it, so phylink_validate() failed with the
> interface.
> 
> 25GBASE-R is a serial mode without clause-37 in-band autonegotiation,
> exactly like 10GBASE-R: it does not needs any configuration, its state
> is read with phylink_mii_c45_pcs_get_state(), and it reports
> LINK_INBAND_DISABLE.
> 
> phylink_mii_c45_pcs_get_state() is extended in the same patch because
> without it the link comes up reporting Unknown/Unknown.
> 
> Suggested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> Co-developed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
> Signed-off-by: Vincent Jardin <vjardin@free.fr>

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Maxime


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

* Re: [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R
  2026-09-22 19:40 [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R Vincent Jardin via B4 Relay
  2026-09-01 22:01 ` Maxime Chevallier
@ 2026-09-03  2:20 ` patchwork-bot+netdevbpf
  2026-09-03 21:52 ` Bradley Morgan
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-03  2:20 UTC (permalink / raw)
  To: Vincent Jardin
  Cc: ioana.ciornei, andrew, hkallweit1, linux, davem, edumazet, kuba,
	pabeni, netdev, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 22 Sep 2026 21:40:33 +0200 you wrote:
> From: Vincent Jardin <vjardin@free.fr>
> 
> The Lynx PCS never supported 25GBASE-R. Add it, so that a 25G DPMAC on
> LX2160A can be driven by phylink.
> 
> The SerDes side had the mode since the commit
>   1cab8fba5073 ("phy: lynx-28g: add support for 25GBASER")
> and dpaa2-mac maps DPMAC_ETH_IF_CAUI to PHY_INTERFACE_MODE_25GBASER,
> but the PCS never handled it, so phylink_validate() failed with the
> interface.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net: pcs: lynx: add support for 25GBASE-R
    https://git.kernel.org/netdev/net-next/c/e8965b0523f2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

* Re: [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R
  2026-09-22 19:40 [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R Vincent Jardin via B4 Relay
  2026-09-01 22:01 ` Maxime Chevallier
  2026-09-03  2:20 ` patchwork-bot+netdevbpf
@ 2026-09-03 21:52 ` Bradley Morgan
  2 siblings, 0 replies; 4+ messages in thread
From: Bradley Morgan @ 2026-09-03 21:52 UTC (permalink / raw)
  To: devnull+vjardin.free.fr
  Cc: andrew, davem, edumazet, hkallweit1, ioana.ciornei, kuba,
	linux-kernel, linux, netdev, pabeni, vjardin

On 22 September 2026 

What??


20:40:33 BST, Vincent Jardin via B4 Relay
<devnull+vjardin.free.fr@kernel.org> wrote:
>From: Vincent Jardin <vjardin@free.fr>
>
>The Lynx PCS never supported 25GBASE-R. Add it, so that a 25G DPMAC on
>LX2160A can be driven by phylink.
>
>The SerDes side had the mode since the commit
>  1cab8fba5073 ("phy: lynx-28g: add support for 25GBASER")
>and dpaa2-mac maps DPMAC_ETH_IF_CAUI to PHY_INTERFACE_MODE_25GBASER,
>but the PCS never handled it, so phylink_validate() failed with the
>interface.
>
>25GBASE-R is a serial mode without clause-37 in-band autonegotiation,
>exactly like 10GBASE-R: it does not needs any configuration, its state
>is read with phylink_mii_c45_pcs_get_state(), and it reports
>LINK_INBAND_DISABLE.
>
>phylink_mii_c45_pcs_get_state() is extended in the same patch because
>without it the link comes up reporting Unknown/Unknown.
>
>Suggested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
>Co-developed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
>Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
>Signed-off-by: Vincent Jardin <vjardin@free.fr>
>---
>Repost of the RFC now that net-next has reopened, rebased on net-next.
>---
>Changes in v2:
>- Reword: this adds 25GBASE-R support, it does not fix a regression
>  (Ioana Ciornei)
>- Squash in the phylink_mii_c45_pcs_get_state() 25GBASER case, without
>  which the link comes up as Unknown/Unknown (Ioana Ciornei)
>- Link to v1: https://lore.kernel.org/r/20260825-for-upstream-lynx-25gbaser-v1-v1-1-fd71c8047798@free.fr
>---
> drivers/net/pcs/pcs-lynx.c | 6 +++++-
> drivers/net/phy/phylink.c  | 5 +++++
> 2 files changed, 10 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c
>index a92081560e641..da4f99059eef7 100644
>--- a/drivers/net/pcs/pcs-lynx.c
>+++ b/drivers/net/pcs/pcs-lynx.c
>@@ -46,6 +46,7 @@ static unsigned int lynx_pcs_inband_caps(struct phylink_pcs *pcs,
> 		return LINK_INBAND_DISABLE | LINK_INBAND_ENABLE;
> 
> 	case PHY_INTERFACE_MODE_10GBASER:
>+	case PHY_INTERFACE_MODE_25GBASER:
> 		return LINK_INBAND_DISABLE;
> 
> 	case PHY_INTERFACE_MODE_USXGMII:
>@@ -97,6 +98,7 @@ static void lynx_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
> 		lynx_pcs_get_state_usxgmii(lynx->mdio, state);
> 		break;
> 	case PHY_INTERFACE_MODE_10GBASER:
>+	case PHY_INTERFACE_MODE_25GBASER:
> 		phylink_mii_c45_pcs_get_state(lynx->mdio, state);
> 		break;
> 	default:
>@@ -188,7 +190,8 @@ static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
> 		return lynx_pcs_config_usxgmii(lynx->mdio, ifmode, advertising,
> 					       neg_mode);
> 	case PHY_INTERFACE_MODE_10GBASER:
>-		/* Nothing to do here for 10GBASER */
>+	case PHY_INTERFACE_MODE_25GBASER:
>+		/* Nothing to do here for 10GBASER and 25GBASER */
> 		break;
> 	default:
> 		return -EOPNOTSUPP;
>@@ -279,6 +282,7 @@ static const phy_interface_t lynx_interfaces[] = {
> 	PHY_INTERFACE_MODE_1000BASEX,
> 	PHY_INTERFACE_MODE_2500BASEX,
> 	PHY_INTERFACE_MODE_10GBASER,
>+	PHY_INTERFACE_MODE_25GBASER,
> 	PHY_INTERFACE_MODE_USXGMII,
> 	PHY_INTERFACE_MODE_10G_QXGMII,
> };
>diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
>index 3ec3bb4391095..ff4375f1e9108 100644
>--- a/drivers/net/phy/phylink.c
>+++ b/drivers/net/phy/phylink.c
>@@ -4360,6 +4360,11 @@ void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs,
> 		state->duplex = DUPLEX_FULL;
> 		break;
> 
>+	case PHY_INTERFACE_MODE_25GBASER:
>+		state->speed = SPEED_25000;
>+		state->duplex = DUPLEX_FULL;
>+		break;
>+
> 	default:
> 		break;
> 	}
>
>---
>base-commit: c8ea08ba34f2a2e9bfb18ff3d69eb2d69b324f49
>change-id: 20260825-for-upstream-lynx-25gbaser-v1-30097d909d09
>
>Best regards,
>

--- Thanks!
https://lore.kernel.org/all/EE579805-42F2-4C58-B752-F28779EEB717@grrlz.net/

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

* [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R
@ 2026-09-22 19:40 Vincent Jardin via B4 Relay
  2026-09-01 22:01 ` Maxime Chevallier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vincent Jardin via B4 Relay @ 2026-09-22 19:40 UTC (permalink / raw)
  To: Ioana Ciornei, Andrew Lunn, Heiner Kallweit, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: netdev, linux-kernel, Vincent Jardin

From: Vincent Jardin <vjardin@free.fr>

The Lynx PCS never supported 25GBASE-R. Add it, so that a 25G DPMAC on
LX2160A can be driven by phylink.

The SerDes side had the mode since the commit
  1cab8fba5073 ("phy: lynx-28g: add support for 25GBASER")
and dpaa2-mac maps DPMAC_ETH_IF_CAUI to PHY_INTERFACE_MODE_25GBASER,
but the PCS never handled it, so phylink_validate() failed with the
interface.

25GBASE-R is a serial mode without clause-37 in-band autonegotiation,
exactly like 10GBASE-R: it does not needs any configuration, its state
is read with phylink_mii_c45_pcs_get_state(), and it reports
LINK_INBAND_DISABLE.

phylink_mii_c45_pcs_get_state() is extended in the same patch because
without it the link comes up reporting Unknown/Unknown.

Suggested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Co-developed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Vincent Jardin <vjardin@free.fr>
---
Repost of the RFC now that net-next has reopened, rebased on net-next.
---
Changes in v2:
- Reword: this adds 25GBASE-R support, it does not fix a regression
  (Ioana Ciornei)
- Squash in the phylink_mii_c45_pcs_get_state() 25GBASER case, without
  which the link comes up as Unknown/Unknown (Ioana Ciornei)
- Link to v1: https://lore.kernel.org/r/20260825-for-upstream-lynx-25gbaser-v1-v1-1-fd71c8047798@free.fr
---
 drivers/net/pcs/pcs-lynx.c | 6 +++++-
 drivers/net/phy/phylink.c  | 5 +++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/net/pcs/pcs-lynx.c b/drivers/net/pcs/pcs-lynx.c
index a92081560e641..da4f99059eef7 100644
--- a/drivers/net/pcs/pcs-lynx.c
+++ b/drivers/net/pcs/pcs-lynx.c
@@ -46,6 +46,7 @@ static unsigned int lynx_pcs_inband_caps(struct phylink_pcs *pcs,
 		return LINK_INBAND_DISABLE | LINK_INBAND_ENABLE;
 
 	case PHY_INTERFACE_MODE_10GBASER:
+	case PHY_INTERFACE_MODE_25GBASER:
 		return LINK_INBAND_DISABLE;
 
 	case PHY_INTERFACE_MODE_USXGMII:
@@ -97,6 +98,7 @@ static void lynx_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
 		lynx_pcs_get_state_usxgmii(lynx->mdio, state);
 		break;
 	case PHY_INTERFACE_MODE_10GBASER:
+	case PHY_INTERFACE_MODE_25GBASER:
 		phylink_mii_c45_pcs_get_state(lynx->mdio, state);
 		break;
 	default:
@@ -188,7 +190,8 @@ static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
 		return lynx_pcs_config_usxgmii(lynx->mdio, ifmode, advertising,
 					       neg_mode);
 	case PHY_INTERFACE_MODE_10GBASER:
-		/* Nothing to do here for 10GBASER */
+	case PHY_INTERFACE_MODE_25GBASER:
+		/* Nothing to do here for 10GBASER and 25GBASER */
 		break;
 	default:
 		return -EOPNOTSUPP;
@@ -279,6 +282,7 @@ static const phy_interface_t lynx_interfaces[] = {
 	PHY_INTERFACE_MODE_1000BASEX,
 	PHY_INTERFACE_MODE_2500BASEX,
 	PHY_INTERFACE_MODE_10GBASER,
+	PHY_INTERFACE_MODE_25GBASER,
 	PHY_INTERFACE_MODE_USXGMII,
 	PHY_INTERFACE_MODE_10G_QXGMII,
 };
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index 3ec3bb4391095..ff4375f1e9108 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -4360,6 +4360,11 @@ void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs,
 		state->duplex = DUPLEX_FULL;
 		break;
 
+	case PHY_INTERFACE_MODE_25GBASER:
+		state->speed = SPEED_25000;
+		state->duplex = DUPLEX_FULL;
+		break;
+
 	default:
 		break;
 	}

---
base-commit: c8ea08ba34f2a2e9bfb18ff3d69eb2d69b324f49
change-id: 20260825-for-upstream-lynx-25gbaser-v1-30097d909d09

Best regards,
-- 
Vincent Jardin <vjardin@free.fr>



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

end of thread, other threads:[~2026-09-03 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 19:40 [PATCH net-next v2] net: pcs: lynx: add support for 25GBASE-R Vincent Jardin via B4 Relay
2026-09-01 22:01 ` Maxime Chevallier
2026-09-03  2:20 ` patchwork-bot+netdevbpf
2026-09-03 21:52 ` Bradley Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox