Skip to content

Commit

Permalink
net: sfp: Fixup for OEM SFP-2.5G-T(-R-RM) module
Browse files Browse the repository at this point in the history
Change from quirk to fixup for the OEM SFP-2.5G-T module.
Add OEM SFP-2.5G-T-R-RM module.

Implementing this fixup, the rtl8221b phy is attached and the quirk is
no longer used.

The module is re-branded to different brands:

OEM SFP-2.5G-T: visible brand LuLeey.
Add SFP-2.5G-T-R-RM: no visible brand, bought from Sinovoip store

Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
  • Loading branch information
ericwoud authored and frank-w committed Mar 29, 2024
1 parent 68f0157 commit dd3dd75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion drivers/net/phy/sfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ static void sfp_fixup_rollball(struct sfp *sfp)
sfp->phy_t_retry = msecs_to_jiffies(1000);
}

// For 2.5GBASE-T short-reach modules
static void sfp_fixup_oem_2_5gbaset(struct sfp *sfp)
{
sfp_fixup_rollball(sfp);
sfp->id.base.extended_cc = SFF8024_ECC_2_5GBASE_T;
}

static void sfp_fixup_fs_10gt(struct sfp *sfp)
{
sfp_fixup_10gbaset_30m(sfp);
Expand Down Expand Up @@ -503,7 +510,8 @@ static const struct sfp_quirk sfp_quirks[] = {
SFP_QUIRK_F("Walsun", "HXSX-ATRI-1", sfp_fixup_fs_10gt),

SFP_QUIRK_F("OEM", "SFP-10G-T", sfp_fixup_rollball_cc),
SFP_QUIRK_M("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),
SFP_QUIRK_F("OEM", "SFP-2.5G-T", sfp_fixup_oem_2_5gbaset),
SFP_QUIRK_F("OEM", "SFP-2.5G-T-R-RM", sfp_fixup_oem_2_5gbaset),
SFP_QUIRK_F("OEM", "RTSFP-10", sfp_fixup_rollball_cc),
SFP_QUIRK_F("OEM", "RTSFP-10G", sfp_fixup_rollball_cc),
SFP_QUIRK_F("Turris", "RTSFP-10", sfp_fixup_rollball),
Expand Down

0 comments on commit dd3dd75

Please sign in to comment.