From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: "Marek Behún" <kabel@kernel.org>,
netdev@vger.kernel.org, "Russell King" <linux@armlinux.org.uk>
Cc: Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>,
"David S. Miller" <davem@davemloft.net>,
Heiner Kallweit <hkallweit1@gmail.com>,
Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH net] net: sfp: Fix quirk for Ubiquiti U-Fiber Instant SFP module
Date: Wed, 28 Jan 2026 21:25:10 +0100 [thread overview]
Message-ID: <65ba2124-3940-4dd6-bbab-a31cdc67f573@bootlin.com> (raw)
In-Reply-To: <20260128175714.11411-1-kabel@kernel.org>
Hi Marek,
On 28/01/2026 18:57, Marek Behún wrote:
> Commit fd580c9830316eda ("net: sfp: augment SFP parsing with
> phy_interface_t bitmap") did not add augumentation for the interface
^^^^^^^^^^^^^
augmentation
> 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>
> ---
> drivers/net/phy/sfp.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
> index 47f095bd91ce..eb6fa98e5d71 100644
> --- a/drivers/net/phy/sfp.c
> +++ b/drivers/net/phy/sfp.c
> @@ -479,6 +479,8 @@ static void sfp_quirk_ubnt_uf_instant(const struct sfp_eeprom_id *id,
> linkmode_zero(caps->link_modes);
> linkmode_set_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
> caps->link_modes);
> + bitmap_zero(caps->interfaces, PHY_INTERFACE_MODE_MAX);
small nit, you can use phy_interface_zero() here.
> + __set_bit(PHY_INTERFACE_MODE_1000BASEX, caps->interfaces);
> }
>
> #define SFP_QUIRK(_v, _p, _s, _f) \
With that, it looks good to me,
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Maxime
next prev parent reply other threads:[~2026-01-28 20:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-28 17:57 [PATCH net] net: sfp: Fix quirk for Ubiquiti U-Fiber Instant SFP module Marek Behún
2026-01-28 20:25 ` Maxime Chevallier [this message]
2026-01-29 8:36 ` Marek Behún
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65ba2124-3940-4dd6-bbab-a31cdc67f573@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kabel@kernel.org \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.