πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19964

Re: [PATCH net-next v3 2/2] net: sfp: sort OEM and Turris SFP quirks

#19964
From: netdev-bot+sashiko
Date: Fri, 20 Nov 2026 21:17
97 lines
11692 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message says the patch keeps the OEM entries "in the
  vendor table's alphabetical order", but the resulting sfp_quirks[]…
- [Low] After the reordering, the comment "// HORACO HC-10GE-113C uses
  Rollball protocol to talk to the PHY." (sfp.c:620) heads a block with…

--

net: sfp: sort OEM and Turris SFP quirks

This commit reorders the sfp_quirks[] table in drivers/net/phy/sfp.c. It
moves the UBNT, Walsun and YV entries to after the OEM block, and sorts
the OEM and Turris entries by part number. No quirk matches or fixups are
changed.

> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
> index 960ac89cc2a0b..33349c3556b31 100644
> --- a/drivers/net/phy/sfp.c
> +++ b/drivers/net/phy/sfp.c
> @@ -617,33 +617,24 @@ static const struct sfp_quirk sfp_quirks[] = {
>  	// ODI DFP-34X-2C3 XPON stick can operate at 2500base-X
>  	SFP_QUIRK_S("ODI", "DFP-34X-2C3", sfp_quirk_2500basex),
>  
> -	SFP_QUIRK_S("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant),
> -
> -	// Walsun HXSX-ATR[CI]-1 don't identify as copper, and use the
> -	// Rollball protocol to talk to the PHY.
> -	SFP_QUIRK_F("Walsun", "HXSX-ATRC-1", sfp_fixup_fs_10gt),
> -	SFP_QUIRK_F("Walsun", "HXSX-ATRI-1", sfp_fixup_fs_10gt),
> -
> -	SFP_QUIRK_F("YV", "SFP+ONU-XGSPON", sfp_fixup_potron),
> -
>  	// HORACO HC-10GE-113C uses Rollball protocol to talk to the PHY.
>  	SFP_QUIRK_F("OEM", "HC-10GE-113C", sfp_fixup_rollball),
> +	SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc),
> +	SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc),

[Severity: Low]
Should there be a blank line after the HC-10GE-113C entry?

In the rest of sfp_quirks[], a comment applies to every entry up to the
next blank line. The Walsun, Fiberstore SFP-2.5G-T/SFP-10GM-T and Lantech
comments each cover two entries this way.

Because RTSFP-10 and RTSFP-10G now sit directly under it, the HORACO
comment reads as if it also describes those modules. They are different
modules, and they use sfp_fixup_rollball_cc, not sfp_fixup_rollball.

Before this patch, the HORACO comment covered one entry and was followed
by a blank line. The RTSFP entries were in the uncommented SFP-10G-T /
SFP-2.5G-* block. Could a blank line or a separate comment be added for
the RTSFP entries?

[ ... ]

> @@ -652,11 +643,20 @@ static const struct sfp_quirk sfp_quirks[] = {
>  	// match the part as a prefix.
>  	SFP_QUIRK_F_PREFIX("OEM", "XGSPONST2001", sfp_fixup_potron),
>  
> +	SFP_QUIRK_S("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant),
> +
> +	// Walsun HXSX-ATR[CI]-1 don't identify as copper, and use the
> +	// Rollball protocol to talk to the PHY.
> +	SFP_QUIRK_F("Walsun", "HXSX-ATRC-1", sfp_fixup_fs_10gt),
> +	SFP_QUIRK_F("Walsun", "HXSX-ATRI-1", sfp_fixup_fs_10gt),
> +
> +	SFP_QUIRK_F("YV", "SFP+ONU-XGSPON", sfp_fixup_potron),
> +
>  	SFP_QUIRK_S("TP-LINK", "TL-SM410U", sfp_quirk_oem_2_5g),

[Severity: Low]
The commit message says:

    Keep OEM entries together in the vendor table's alphabetical order

Is the vendor order alphabetical after this move? The UBNT, Walsun and YV
block now sits between OEM and TP-LINK, which gives this vendor order:

    ODI, OEM, UBNT, Walsun, YV, TP-LINK, Turris, XikeStor, ZOERAX

In alphabetical order it would be:

    ODI, OEM, TP-LINK, Turris, UBNT, Walsun, XikeStor, YV, ZOERAX

These are the only lines that this patch moves between vendors, and they
are still out of order. Would it make sense to put UBNT and Walsun after
Turris, and YV after XikeStor? Then a later patch would not need to move
the same lines again.

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261118162323.436219-1-github%40bumblecito.com
Technical Details
Message-ID: <179520946280.3135.6308725941538199399@kernel.org>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368149-linux-kernel-netdev=dewy.ru
References: <20261118162323.436219-3-github@bumblecito.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368149-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: sort OEM and Turris SFP quirks
Date: Fri, 20 Nov 2026 21:17:42 +0000
Organization: Usenet Network
Message-ID: <179520946280.3135.6308725941538199399@kernel.org>
References: <20261118162323.436219-3-github@bumblecito.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3265210"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/VVmhRDEBVbfaPAhJyMZ8yvH0gU= sha256:d9ium8mQk6ZdqV/SPi3F1g9OyFLkjkmFYyOO4z/Q6Bk=
	sha1:qCI3kK+KfQeF7m2Sbj1oeg0Q53U= sha256:vvIG8jssi2QqMiW8k1rFfKPG1+oXkafOxYu//s/7KCM=
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 C94B0115A83; Sat, 21 Nov 2026 00:18:34 +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 qknB6kdh7dr8;
	Sat, 21 Nov 2026 00:18:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368149-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 07050115A63; Sat, 21 Nov 2026 00:18:23 +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 D164A122376; Fri, 20 Nov 2026 21:18:07 +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=1795209465;
	b=0W8azyOrBurG/WMNYcu3bGv2qT0rz2GMo3pZQ7w8afSeWZlKTPgHkL1tj4P13Qja5UAE
	 LX7RGDmI8K75onzDLzSZTkxu32B9aSLiTUiFGN5zls+GmXkclpHQcwDO+R15Hgb+zVfVq
	 CA6tlp7IgNINj+NLhqN001ctIQOZmPqvIEnqXQmkROFFBMDGL27hb8hOConvc8WjaDJ1w
	 biOPyoCWaS7kdl2bUA0kCWrDfGKFFV8yijtKlrROyHe9CUU5INpbWLeje6SjqB0ftm9Dj
	 db1qFpMgKgIOVs6d0qIsuot/EDXQx9Rz1oizzOzVZYDIju7AKXnMFfrWyqJyRAU/R/A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795209465;
	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=aruSc4nOT7OxSafy72XKe9N+IixJMjlArgP/iv4iezA=;
	b=bd6SvD/9G7uMS6QtYZo7yrf2pGgCYd6qVFpg9riGEowbRIfQA53D0ZGdbX27adZxtjP5
	 8Q0R3GOyYvMwsc2bmH30SN94y89mBjtZALa82VFu3TtstKSCzVXs1lKMmfjx6JwBjmQJe
	 wdVaLE0qELc6cwzOxUcmd8HQjGdVLh2xWY5UlUMhfgETQKfrSjVCxXlNguLcOrMidHt7W
	 e/man4Fg1NpXhPBLIUMxhdpfVV9anOMCem58FlOW/nPhsvGGHd+0Ws8D+qiNx0iuSJwhH
	 /F70JhqcTI6fYWUZocVh3Tfmq4vzX1gyKjSrqSVMgt4YTBhww6D6ky/GELpR2vZQ9ew==
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=iH4DPGTk;
	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 1E2F360A2611;
	Fri, 20 Nov 2026 21:17:45 +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=iH4DPGTk
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=1795209464;
	b=Uxrhyp0c+XqxmJnTelO6RYu6D7kSDHZcjnSCCHC7vYPA4DFKoqWBhjGnYLWRdjA2ZXO3
	 NIVTXiZXbQDTZg7APWJQt1hV3TJTr6wbghBhZ+6NIK1ghfar+FNGteuJvjV9ZW5a7kcMx
	 bQIjjHANF/dbRPSVxBMaCoktNuZNlx+LMpgOw2wMXOGveGc+IyquaPrgJhcXxIZAhKEH9
	 giaR6qFo60mUTdMYF8YIkio0av1TV/ptsVFlV40sweOO3rmjRxzhew0URNktLRV05vsu1
	 ZRzouvN5Gd4Dh/smTfzVFsqO/49FkysFKoNfSzkri6ZMwukM/cwei12dfq/rRnlmf2g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795209464;
	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=aruSc4nOT7OxSafy72XKe9N+IixJMjlArgP/iv4iezA=;
	b=WdCr5j238JbXttqD9MiuVw8Srn0In5X3UfJKkPeYkyJ1bbNC7NsTPikXN2Qy338fYGSu
	 V2aXMDZ6QCSUitRKbplsjYGDt9BREHVZC+1DXTmKEo59JW+mcOEhaYVDMNnrsiTwQ7qN6
	 wWlCVH3Quld5QiO8O9jFGyF8ebjyr2xpw4FowvUCPV4o6HxRtocvl/0Fi0mDkR6HJNlup
	 2Kd5H9aR5f0w10WxveoZ86qC/3fvbxe5hpiDkfEnTltMUVTikMsp1Xmlxr+shG7oDn/JB
	 dhMwGvAePIPafrEXO91goWSrPdB92WPRd/CTvo1NIwT26G36hGObmexYl2IfPijhgIg==
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=iH4DPGTk;
	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 37F7060A2601;
	Fri, 20 Nov 2026 21:17:43 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E7911F00A36;
	Fri, 20 Nov 2026 21:17:43 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795209463;
	bh=aruSc4nOT7OxSafy72XKe9N+IixJMjlArgP/iv4iezA=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=iH4DPGTk4uHDfZWYu5WCjHeuYKjyjkkSleD2C9+KXVyUlsT1Z53/FP+sq18hGXALG
	 LnwloQrJvmDTixp2TbCdc+GOKnFKfzkLbXLbvx57hMcri+PX9EwB9E+ZXxAexi53Za
	 O4muY+kzxbfYfQH3OgE1vXXvgdb2hduC1HpRJ6VRHTNHH9cvRNfKXLWeJd2vy8bpPF
	 AQjTbwdSvBnIOx83lP9eGEKygx4GAIw4oZATp2NeXc7HsWUnXfZ5ZJqyjqvKjqZTD5
	 HcZ0RvnGghClKy+Ia7lb1JPTWoPs3wGJdEXtS/ud6edMmgxWv8gooZ36AMFvvfci+s
	 sYX3WfU7L2wXA==
X-Cc: linux@armlinux.org.uk, andrew@lunn.ch, hkallweit1@gmail.com,
 davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261118162323.436219-3-github@bumblecito.com>
X-sashiko-severity: Low
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