net: sfp: Fix Ubiquiti U-Fiber Instant SFP module on mvneta
Subsystems (4)
PATCH 1/1 net: sfp: Fix Ubiquiti U-Fiber Instant SFP module on mvneta
In commit 8110633db49d7de2 ("net: sfp-bus: allow SFP quirks to override Autoneg and pause bits") we moved the setting of Autoneg and pause bits before the call to SFP quirk when parsing SFP module support.
Since the quirk for Ubiquiti U-Fiber Instant SFP module zeroes the support bits and sets 1000baseX_Full only, the above mentioned commit changed the overall computed support from
1000baseX_Full, Autoneg, Pause, Asym_Pause
to just
1000baseX_Full.
This broke the SFP module for mvneta, which requires Autoneg for 1000baseX since commit c762b7fac1b249a9 ("net: mvneta: deny disabling autoneg for 802.3z modes").
Fix this by setting back the Autoneg, Pause and Asym_Pause bits in the quirk.
--- drivers/net/phy/sfp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/phy/sfp.c +6 -1
@@ -480,11 +480,16 @@ static void sfp_quirk_ubnt_uf_instant(const struct sfp_eeprom_id *id, {/* Ubiquiti U-Fiber Instant module claims that support all transceiver * types including 10G Ethernet which is not truth. So clear all claimed -* modes and set only one mode which module supports: 1000baseX_Full. +* modes and set only one mode which module supports: 1000baseX_Full, +* along with the Autoneg and pause bits. */ linkmode_zero (caps->link_modes);linkmode_set_bit (ETHTOOL_LINK_MODE_1000baseX_Full_BIT, caps->link_modes); +linkmode_set_bit (ETHTOOL_LINK_MODE_Autoneg_BIT, caps->link_modes); +linkmode_set_bit (ETHTOOL_LINK_MODE_Pause_BIT, caps->link_modes); +linkmode_set_bit (ETHTOOL_LINK_MODE_Asym_Pause_BIT, caps->link_modes); +phy_interface_zero (caps->interfaces);__set_bit (PHY_INTERFACE_MODE_1000BASEX , caps->interfaces); }
Signature · 1 line
2.52.0
Quoted 15 lines · Marek Behún
In commit
8110633db49d7de2("net: sfp-bus: allow SFP quirks to override Autoneg and pause bits") we moved the setting of Autoneg and pause bits before the call to SFP quirk when parsing SFP module support.Since the quirk for Ubiquiti U-Fiber Instant SFP module zeroes the support bits and sets 1000baseX_Full only, the above mentioned commit changed the overall computed support from
1000baseX_Full, Autoneg, Pause,Asym_Pause
to just
1000baseX_Full.This broke the SFP module for mvneta, which requires Autoneg for 1000baseX since commit
c762b7fac1b249a9("net: mvneta: deny disabling autoneg for 802.3z modes").
Quoted 5 lines
Fix this by setting back the Autoneg, Pause and
Asym_Pausebits in the quirk.Fixes 8110633db49d7de2 ("net: sfp-bus: allow SFP quirks to override Autoneg and pause bits")Signed-off-by Marek Behún <[email protected]>
Thanks!
Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 4 lines · On Thu, 26 Mar 2026 13:20:38 +0100 you wrote:
In commit
8110633db49d7de2("net: sfp-bus: allow SFP quirks to override Autoneg and pause bits") we moved the setting of Autoneg and pause bits before the call to SFP quirk when parsing SFP module support.
Quoted 8 lines
Since the quirk for Ubiquiti U-Fiber Instant SFP module zeroes the support bits and sets 1000baseX_Full only, the above mentioned commit changed the overall computed support from
1000baseX_Full, Autoneg, Pause,Asym_Pause
to just
1000baseX_Full.[...]
Here is the summary with links:
- [net] net: sfp: Fix Ubiquiti U-Fiber Instant SFP module on mvneta
https://git.kernel.org/netdev/net/c/eeee5a710f26
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html