]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: sfp: Fix quirk for Ubiquiti U-Fiber Instant SFP module
authorMarek Behún <kabel@kernel.org>
Thu, 29 Jan 2026 08:22:27 +0000 (09:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Jan 2026 01:19:37 +0000 (17:19 -0800)
commitadcbadfd8e05d3558c9cfaa783f17c645181165f
tree050a891bd4aa3a6b7ab2e2e2583ee76880e5f077
parent31a7a0bbeb006bac2d9c81a2874825025214b6d8
net: sfp: Fix quirk for Ubiquiti U-Fiber Instant SFP module

Commit fd580c9830316eda ("net: sfp: augment SFP parsing with
phy_interface_t bitmap") did not add augumentation for the interface
bitmap in the quirk for Ubiquiti U-Fiber Instant.

The subsequent commit f81fa96d8a6c7a77 ("net: phylink: use
phy_interface_t bitmaps for optical modules") then changed phylink code
for selection of SFP interface: instead of using link mode bitmap, the
interface bitmap is used, and the fastest interface mode supported by
both SFP module and MAC is chosen.

Since the interface bitmap contains also modes faster than 1000base-x,
this caused a regression wherein this module stopped working
out-of-the-box.

Fix this.

Fixes: fd580c9830316eda ("net: sfp: augment SFP parsing with phy_interface_t bitmap")
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260129082227.17443-1-kabel@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/sfp.c