Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: pawlik.dan@gmail.com
Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
	netdev@vger.kernel.org, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org, kabel@kernel.org,
	petr.wozniak@gmail.com, maxime.chevallier@bootlin.com,
	olek2@wp.pl
Subject: Re: [PATCH net-next v3 2/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and B
Date: Tue, 24 Nov 2026 06:55:17 +0000	[thread overview]
Message-ID: <179550331780.3135.5558299951406593344@kernel.org> (raw)
In-Reply-To: <20261120063756.3677554-3-pawlik.dan@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.

Critical: 0 · High: 0 · Medium: 1 · Low: 1

If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).

- [Medium] This is speculative.
- [Low] Missing Fixes: tag.

--

net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and B

This patch gives the "OEM"/"SFP-10G-T" quirk entry its own fixup. For a
single-character vendor revision of "A" or "B", the fixup sets
MDIO_I2C_NONE and forces the 10GBASE-T SFI extended compliance code, so the
module comes up in 10GBASE-R inband mode and skips the RollBall PHY probe
retries, which can take over nine minutes. All other revisions still get
sfp_fixup_rollball_cc().

Link: https://lore.kernel.org/netdev/20260624084814.20972-1-petr.wozniak@gmail.com/

> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
> index 8406ad8ee786f..431c0f773d357 100644
> --- a/drivers/net/phy/sfp.c
> +++ b/drivers/net/phy/sfp.c
> @@ -496,6 +496,30 @@ static size_t sfp_strlen(const char *str, size_t maxlen)
>  	return size;
>  }
>
> +static void sfp_fixup_oem_10gt(struct sfp *sfp)
> +{
> +	char rev = sfp->id.base.vendor_rev[0];
> +

[ ... ]

> +	if (sfp_strlen(sfp->id.base.vendor_rev, 4) == 1 &&
> +	    (rev == 'A' || rev == 'B')) {
> +		dev_info(sfp->dev,
> +			 "rev %c has no RollBall MDIO bridge, not probing for a PHY\n",
> +			 rev);
> +		sfp->mdio_protocol = MDIO_I2C_NONE;

[Severity: Medium]
This concern is speculative. Is a one-character vendor_rev, together with
the vendor string "OEM", enough to conclude that a module has no RollBall
bridge?

"OEM" is a placeholder vendor name that many unrelated manufacturers use,
and "A" and "B" are very common revision values. With MDIO_I2C_NONE set
here, sfp_sm_add_mdio_bus() creates no MDIO bus, and sfp_sm_probe_for_phy()
takes this path:

    case MDIO_I2C_NONE:
        break;

So no PHY is ever probed or attached.

Commit 324e88cbe3b7, which added the original OEM/SFP-10G-T RollBall
quirk for RollBall/Hilink modules, does not record which revision it was
tested with. The rev B match is based only on the OpenWrt report, since no
rev B module was available for testing.

If an OEM/SFP-10G-T rev A or rev B module with a working RollBall bridge
does exist, it had its PHY attached before this patch, and after it the
PHY is never probed. On a module that does not rate-adapt, could a copper
link below 10G then come up with a host interface that does not match the
PHY's system-side mode?

The patch does narrow the match compared with the old quirk. The earlier
runtime bridge probe from commit 8fe125892f40 was also reverted.

Could the match use something more specific than the revision letter, or
could a missing bridge be detected some other way?

> +		sfp->id.base.extended_cc = SFF8024_ECC_10GBASE_T_SFI;
> +		return;
> +	}
> +
> +	sfp_fixup_rollball_cc(sfp);
> +}

[ ... ]

> @@ -643,7 +667,7 @@ static const struct sfp_quirk sfp_quirks[] = {
>  	// OEM SFP-GE-T is a 1000Base-T module with broken TX_FAULT indicator
>  	SFP_QUIRK_F("OEM", "SFP-GE-T", sfp_fixup_ignore_tx_fault),
>
> -	SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_rollball_cc),
> +	SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_oem_10gt),

[Severity: Low]
Should this patch carry a Fixes: tag?

The stall comes from this quirk entry, which forces MDIO_I2C_ROLLBALL with
a 1 second phy_t_retry on every OEM SFP-10G-T module. SFP_S_INIT sets
sm_phy_retries to R_PHY_RETRY (25), and SFP_S_INIT_PHY keeps retrying
sfp_sm_probe_for_phy() while it returns -ENODEV.

The quirk line was added by commit 324e88cbe3b7. Something like this
might work:

Fixes: 324e88cbe3b7 ("net: sfp: add support for multigig RollBall transceivers")

>  	SFP_QUIRK_S("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120063756.3677554-1-pawlik.dan%40gmail.com

      parent reply	other threads:[~2026-11-24  6:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  6:37 [PATCH net-next v3 0/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T Daniel Pawlik
2026-11-20  6:37 ` [PATCH net-next v3 1/2] net: sfp: move sfp_strlen() above the quirk fixups Daniel Pawlik
2026-11-20 12:52   ` Andrew Lunn
2026-11-20  6:37 ` [PATCH net-next v3 2/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and B Daniel Pawlik
2026-11-20 12:56   ` Andrew Lunn
2026-11-21  9:04     ` Daniel Pawlik
2026-11-24  6:55   ` netdev-bot+sashiko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179550331780.3135.5558299951406593344@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=horms@kernel.org \
    --cc=kabel@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=olek2@wp.pl \
    --cc=pabeni@redhat.com \
    --cc=pawlik.dan@gmail.com \
    --cc=petr.wozniak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox