Skip to content

net: pcs: xpcs: fix operating mode selection

Alex Elder lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: pcs: xpcs: re-order xpcs_pre_config() to update after the resetdrivers/net/pcs/pcs-xpcs.c+31 -281 reply
2/2net: pcs: xpcs: select operating mode for 10G-baseR capable PCSdrivers/net/pcs/pcs-xpcs.c+37 -06 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] net: pcs: xpcs: fix operating mode selection

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

Signature · 1 line
2.53.0