Article View: linux.kernel.netdev
Article #21562Re: [PATCH net-next v3 2/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and B
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 06:55
Date: Tue, 24 Nov 2026 06:55
117 lines
12136 bytes
12136 bytes
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
Technical Details
Message-ID:
<179550331780.3135.5558299951406593344@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370057-linux-kernel-netdev=dewy.ruReferences:
<20261120063756.3677554-3-pawlik.dan@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370057-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev 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 Organization: Usenet Network Message-ID: <179550331780.3135.5558299951406593344@kernel.org> References: <20261120063756.3677554-3-pawlik.dan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="4073540"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:wDhvQTuDZQCwhyp6K+0fidrLebQ= sha256:hi1PsdNMFfGJ1B2m4VsFC9uO/u3c6ZxM7RqwRO+a4y4= sha1:N1JddUAPTUrGuaoug9Bl1J0LBcM= sha256:TzIFn70cRqjxu32vz0DKTOelu7fl2g6g7XTg1m/Dhhw= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A8A43125DD6; Tue, 24 Nov 2026 09:55:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yKtEz_GgJ-Wq; Tue, 24 Nov 2026 09:55:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370057-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 4A2FA125DD4; Tue, 24 Nov 2026 09:55:22 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1F8E12FD95; Tue, 24 Nov 2026 06:55:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795503320; b=afaTZKVHHWN9ambOCIlQw7vCKJQzMVUCf+Mks4pavw+Ng1XlUfyhXqWWrE2g2+fYabDi 49Rfkh0CtwBdyBN7rnxJpG0Nbe2XR6+g/Qe4NkPYatBSFGE2Vz3GyjksRq4GUOvT7PPMO J/aTUKVg+PP2RjIP+zHpHjByEM5W2uzkyYfC5hFigoRa5jteYMRjUlroMd0BQCJJ+zpaq 4q06oGtXiRZbJTZFVVU+8Blg66qVFYnX5uwJopbBEgXCDLaSa1gLUmbDhaZWUlS8czbiU f71PBg+163CWrRkrnVs7CkzjbVIykmrajZocFTWUSE30+M6ZCQCgwI9yRiE5VKp2FpQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795503320; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=4JZqLIRnYWUd+Os5N6g0nlJ9NBRY1lNzkMywnkqK/F4=; b=KdHlv5M0QdNVFaLHLIHskJAA3GRTAJC1TvLCVy4S3oEhTJv1HR2fCBa6d1qvLq0AQyuw x3mvpvibgF+QizexxhuOjbIjMJNLI++ftXNubAeq8EBSm43z+tJ8n9zS6j2xyfKNYrpGb oQFu3ZGWY6Wd3D7MC7Aw4f1bVB0jgvxcDytpEIA7StQC093A7d1J1plvpuSdpKAW81mbm wjoKFGvsIjIt2e+v5p8ED87PqHwuofFdVigUqVkFk9qdOsPAcLqIH9bNqDCQ2b7nTW5XX lOqpTqbpHPzl50jcAWigBzs4E2d7SJSPpwVa6q2RzcJW+tphRIoFqXKHNVP1K0/8t7w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BB9nImTe; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FCD6606A32C; Tue, 24 Nov 2026 06:55:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BB9nImTe X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795503319; b=Ov+AqJKHHgURZ0vs0ACy4qgIRA0mk7sf2f1wKyZvv+/I4iFrCEVt9GHVyg640/8AtpYg 8uTLd8Pf+O6O91WJnP9+a47iQkSzUIVItpmMXB23a65A2tgEtKiTK76DwaWalez7sXeQ9 QHdkIEDOqYxUMwQ6kyLadr+BbQYp+eQo1Ky38wDaTLN6YKQAuEanvuarxfMoKK2+2zJPA zCvRVqR/0NuSxR/gbKrRzY04CUF1EfYVSbR6617LRk7iEUFrJkNWSP9jYiNdks1BaECQ5 8SwvyQpQuakj6HaOh4z2P4Yfp6kkqW09GscrxwhjPSrG9dA4zGOi3dbDKmgZR1M0hfg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795503319; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=4JZqLIRnYWUd+Os5N6g0nlJ9NBRY1lNzkMywnkqK/F4=; b=h9Eeyx9+Z0QwcVMowv/6dTAD8+klUtMAqfqqN9Rt3+t7z2QXWueHL1tc+eB0SwQiJWzr KeZP6ONuEAaRgRZ2cQpcJ6ijI/sbXAJPm/Jy0myMMHhvajbO4Ogo2c9TtUMhaZC43gkKk aYMiXm+miZHuVr70Zp9tHniijUuf9ir0Gz3frPKbccNaxybN3HY15Ftq408EEO0BYh/wq cSYPcH5QiJGu1FngFJScBRaF758T3cP5cmEOu+8kr2KyRVQzsAfGidkjwrn6l9XZp7Cbo JpQLhn5zim6x24V42NCnv6TXMK6CQlKawpT3pf+lZwosb52nlA+3fBLwmu7OAWrSQ4w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BB9nImTe; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B066606A31E for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 06:55:19 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F3351F000C6; Tue, 24 Nov 2026 06:55:18 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795503319; bh=4JZqLIRnYWUd+Os5N6g0nlJ9NBRY1lNzkMywnkqK/F4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=BB9nImTe/Rw9Sif2SzHXvX7YurSYXXKNACLsIgA5r1quAEU5Yw2FUrBZjH2vweOMH xmAHs61o26JuVFbB9Q1KZZm8lah0sbRCarogs4GGY805aDvfDhUZOzgSGxJpmJhRcT PWxWjQl9YqDLhvXNX1kMDoYSZRbLWHoAlXWPE3x81OPfNOsG1F5A+u3ExYpgqPLHfa 1HQzyXU2t3escBxLGi8mHqE2uK9M26bJCHsY9im9s+CYwMq9miBZch5Eau7QHrOjBs P9/iG59VHnaX/0r6oodhJax+U7Jy4KEm3WDe3jdUbtTTL6ojSjmza7eEGPINQ/tFx/ MkX0pqXXdRLTQ== X-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 X-In-Reply-To: <20261120063756.3677554-3-pawlik.dan@gmail.com> X-sashiko-severity: Medium X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list