[PATCH net-next 0/2] net: pcs: xpcs: fix operating mode selection
From: Alex Elder
Date: Wed Oct 14 2026 - 18:35:40 EST
The XPCS found on Toshiba TC9564 is unable to operate at 2500base-X
and slower with a PHY connected using SGMII/2500base-X. This XPCS
supports 10Gbase-R, which is the default operating mode, and this
causes mode selection to fail for slower interfaces (SGMII, 1000baseX,
and 2500baseX). Writing a reserved value to the MDIO_CTRL2 register
avoids this failure.
Wangxun already addresses a similar scenario, but includes custom
quirk handling.
This series implements handling for slower rates for an XPCS that
supports 10Gbase-R. The first patch rearranges code that performs
soft reset so that it is done *before* the interface mode is
switched. The second adds code to xpcs_switch_interface_mode()
to update the MDIO_CTRL2 register for interfaces that support
10Gbase-R so that the desired rate change works as intended.
-Alex
Daniel Thompson (2):
net: pcs: xpcs: re-order xpcs_pre_config() to update after the reset
net: pcs: xpcs: select operating mode for 10G-baseR capable PCS
drivers/net/pcs/pcs-xpcs.c | 94 +++++++++++++++++++++++++++-----------
1 file changed, 67 insertions(+), 27 deletions(-)
base-commit: 05b5019b01fb9443b09ae4ed34af1135a80a84c8
--
2.53.0