Skip to content

net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T

Daniel Pawlik netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 3 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Changes in v4 from the cover letter

- Use dev_dbg() instead of dev_info() in the fixup, quirks do not print anything (Andrew Lunn).
- Collect Reviewed-by on patch 1.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: sfp: move sfp_strlen() above the quirk fixupsdrivers/net/phy/sfp.c+14 -140 replies
2/2net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and Bdrivers/net/phy/sfp.c+25 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH net-next v4 0/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T

Some "OEM SFP-10G-T" copper modules have no RollBall I2C-to-MDIO bridge, but the SFP-10G-T quirk forces RollBall on all of them. The PHY probe then retries for over nine minutes under rtnl_lock before the module links up without a PHY. This series skips the PHY probe for the bridge-less revisions A and B, and leaves other revisions, which do have a bridge, unchanged.

Patch 1 moves sfp_strlen() so the fixup can use it, with no functional change. Patch 2 adds the fixup.

This does not re-introduce the generic RollBall bridge probe reverted in commit b521003c27eb ("Revert "net: phy: sfp: probe for RollBall I2C-to-MDIO bridge in mdio-i2c""): the probe path, its timeouts and the MDIO bus creation for genuine RollBall modules are untouched. Further bridge-less revisions of this part number may exist; they can be added once their lack of a bridge is confirmed on hardware.

This series is based on net-next. Patch 2 has a trivial context conflict in the quirk table with the pending "net: sfp: add ODI quirk and sort SFP quirk entries" series [1]; I can rebase whichever lands second.

[1] https://lore.kernel.org/netdev/[email protected]/

Changes in v4:
- Use dev_dbg() instead of dev_info() in the fixup, quirks do not print anything (Andrew Lunn).
- Collect Reviewed-by on patch 1.

Changes in v3:
- Target net-next and drop the Fixes: tag: rev A never worked without the stall, so this is not a regression (Andrew Lunn).
- Split the sfp_strlen() move into its own patch (Andrew Lunn).

Changes in v2:
- Match the vendor revision with sfp_strlen(), so NUL-padded revisions are accepted like the rest of the quirk matching.
- Spell out in the commit message how the rev B module reaches this quirk entry (its part number depends on the peer speed).

v3: https://lore.kernel.org/netdev/[email protected]/
v2: https://lore.kernel.org/netdev/[email protected]/
v1: https://lore.kernel.org/netdev/[email protected]/

Daniel Pawlik (2):
net: sfp: move sfp_strlen() above the quirk fixups
net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and
B

 drivers/net/phy/sfp.c | 54 +++++++++++++++++++++++++++++++------------
 1 file changed, 39 insertions(+), 15 deletions(-)
Signature · 1 line
2.56.1