diff mbox series

[1/1] net: sfp: add support for HXSX-ATRI-1 copper SFP+ module

Message ID 20230522145242.30192-2-josua@solid-run.com (mailing list archive)
State Accepted
Commit ac2e8e3cfe48439a2403b3d616fb654db313e362
Delegated to: Netdev Maintainers
Headers show
Series net: sfp: add support for HXSX-ATRI-1 copper SFP+ module | expand

Checks

Context Check Description
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Josua Mayer May 22, 2023, 2:52 p.m. UTC
Walsun offers commercial ("C") and industrial ("I") variants of
multi-rate copper SFP+ modules.

Add quirk for HXSX-ATRI-1 using same parameters as the already supported
commercial variant HXSX-ATRC-1.

Signed-off-by: Josua Mayer <josua@solid-run.com>
---
 drivers/net/phy/sfp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Russell King (Oracle) May 22, 2023, 3:17 p.m. UTC | #1
On Mon, May 22, 2023 at 05:52:42PM +0300, Josua Mayer wrote:
> Walsun offers commercial ("C") and industrial ("I") variants of
> multi-rate copper SFP+ modules.
> 
> Add quirk for HXSX-ATRI-1 using same parameters as the already supported
> commercial variant HXSX-ATRC-1.
> 
> Signed-off-by: Josua Mayer <josua@solid-run.com>

Please note that this depends on this patch:
"net: sfp: add support for a couple of copper multi-rate modules"
https://patchwork.kernel.org/project/netdevbpf/patch/E1q0JfS-006Dqc-8t@rmk-PC.armlinux.org.uk/

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

Thanks!
diff mbox series

Patch

diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
index ce9693f9f488..2592ff08c783 100644
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
@@ -451,9 +451,10 @@  static const struct sfp_quirk sfp_quirks[] = {
 
 	SFP_QUIRK_M("UBNT", "UF-INSTANT", sfp_quirk_ubnt_uf_instant),
 
-	// Walsun HXSX-ATRC-1 doesn't identify as copper, and uses the
+	// 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("OEM", "SFP-10G-T", sfp_fixup_rollball_cc),
 	SFP_QUIRK_M("OEM", "SFP-2.5G-T", sfp_quirk_oem_2_5g),