Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by github
Wed, 18 Nov 2026 16:23
[PATCH net-next v3 2/2] net: sfp: sort OEM and Turris SFP quirks
Author: github
Date: Wed, 18 Nov 2026 16:23
Date: Wed, 18 Nov 2026 16:23
84 lines
13852 bytes
13852 bytes
From: Israel Cueto <github@bumblecito.com>
Keep OEM entries together in the vendor table's alphabetical order
and sort the OEM and Turris entries by part number.
This is a table-ordering cleanup only; preserve all existing quirk
matches and fixup functions.
Signed-off-by: Israel Cueto <github@bumblecito.com>
---
drivers/net/phy/sfp.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
index 960ac89cc..33349c355 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),
- // 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),
+ // OEM SFP+ONU-XGSPON is a XGS-PON ONT stick with broken TX_FAULT and
+ // LOS indicators and slow startup, just like potron.
+ SFP_QUIRK_F("OEM", "SFP+ONU-XGSPON", sfp_fixup_potron),
SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_rollball_cc),
- SFP_QUIRK_S("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),
SFP_QUIRK_S("OEM", "SFP-2.5G-BX10-D", sfp_quirk_2500basex),
SFP_QUIRK_S("OEM", "SFP-2.5G-BX10-U", sfp_quirk_2500basex),
SFP_QUIRK_S("OEM", "SFP-2.5G-LH03-B", sfp_quirk_2500basex),
SFP_QUIRK_S("OEM", "SFP-2.5G-LH20-A", sfp_quirk_2500basex),
- SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc),
- SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc),
+ SFP_QUIRK_S("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),
- // OEM SFP+ONU-XGSPON is a XGS-PON ONT stick with broken TX_FAULT and
- // LOS indicators and slow startup, just like potron.
- SFP_QUIRK_F("OEM", "SFP+ONU-XGSPON", sfp_fixup_potron),
+ // 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),
// OEM XGSPONST2001 is an XGS-PON ONT stick with broken TX_FAULT and
// LOS indicators and slow startup, just like potron. On cold
@@ -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),
- SFP_QUIRK_F("Turris", "RTSFP-2.5G", sfp_fixup_rollball),
SFP_QUIRK_F("Turris", "RTSFP-10", sfp_fixup_rollball),
SFP_QUIRK_F("Turris", "RTSFP-10G", sfp_fixup_rollball),
+ SFP_QUIRK_F("Turris", "RTSFP-2.5G", sfp_fixup_rollball),
SFP_QUIRK_F("XikeStor", "SKT-2.5G-100M", sfp_fixup_xikestor_2_5g),
--
2.34.1
Re: [PATCH net-next v3 2/2] net: sfp: sort OEM and Turris SFP quirks
Author: Andrew Lunn
Date: Wed, 18 Nov 2026 18:11
Date: Wed, 18 Nov 2026 18:11
17 lines
8751 bytes
8751 bytes
On Wed, Nov 18, 2026 at 04:23:23PM +0000, github@bumblecito.com wrote:
> From: Israel Cueto <github@bumblecito.com>
>
> Keep OEM entries together in the vendor table's alphabetical order
> and sort the OEM and Turris entries by part number.
>
> This is a table-ordering cleanup only; preserve all existing quirk
> matches and fixup functions.
>
> Signed-off-by: Israel Cueto <github@bumblecito.com>
Thanks for spending the extra time to do this.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Re: [PATCH net-next v3 2/2] net: sfp: sort OEM and Turris SFP quirks
Author: netdev-bot+sashiko
Date: Fri, 20 Nov 2026 21:17
Date: Fri, 20 Nov 2026 21:17
97 lines
11692 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads