Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3304470rwl; Sun, 2 Apr 2023 05:03:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bp4RsrPYOpK0FoeOB0oTCCgtVxI9GLRriUdn+INn73Z5HrbeWaTXXRhYQQpmtZjHfz1RU/ X-Received: by 2002:aa7:9a10:0:b0:624:3061:7dbf with SMTP id w16-20020aa79a10000000b0062430617dbfmr30599696pfj.25.1680437034516; Sun, 02 Apr 2023 05:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680437034; cv=none; d=google.com; s=arc-20160816; b=adqlvgo8tTB+XIWIjSSLrhKUmc6Ymh23oAKHMDJTdV/gwWuV6WfDW42I/B5CBCUJe8 zE9IFpHHNTIuL5Y868fl2+9JdjXOFJqiZhrIjv19gZMPkx8hwnxS8ULLYgaGwC0DuOyo ez2XYDwV1WCnWx8hJCWmomDCMoMVR9jwOr150Vwm6toeViWprGc+MuKvgPanceU3Aylg 6NyEOWnmwJp1YU350rsUekFCwPrGG6iYygTr8jicO9N7EeDx+aMo4LHGTmO5gO3XvY05 RQvIzFd4yJXclwgJinMKxnsE0JkcwXdNHbdFL1fM51i+jFZ4NLx6Vfls8d/8QUpJI4Di SbGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=zL1ll6nYswAxSYIcOvAkiWk5UZzXYdxsYMminEqh4kQ=; b=LI3Dn3OpN7a0+vGfgCEntc6DovWaH3DLyr9V7DiXNU9tNkDb8afr2IaP8XXmKqQqAY RwMH5qPWGRKmY72JcX+sLnSdTc5q4CTuEk3aFhMxmjfPzZCo5qasCJf/0S2xpCwaeT8N 8O/bBImfcMI/RZKtkop91YnzcG/F1bVMIY42galRPJ53b8De+MIRXIzktDnf/WMfy2bj vrVHDcFH5fQeVCLQ/wYBm+DaaiV1kibAgUdg2PTbJLOyIA/ElK2vYY+EfUDC+Vtjs2Gg 7uftD0FTA6+evWdbFknarx2ickzmTH3PMzwV8rvmspIBVjBoPS+zDLvdcg0L5iLgD2GF znwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l187-20020a6391c4000000b0051377671b30si6320319pge.900.2023.04.02.05.03.37; Sun, 02 Apr 2023 05:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbjDBLow (ORCPT + 99 others); Sun, 2 Apr 2023 07:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjDBLou (ORCPT ); Sun, 2 Apr 2023 07:44:50 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B54C52443A; Sun, 2 Apr 2023 04:44:49 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1piw8a-0003lK-1H; Sun, 02 Apr 2023 13:44:44 +0200 Date: Sun, 2 Apr 2023 12:44:37 +0100 From: Daniel Golle To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: chowtom , Frank Wunderlich Subject: [PATCH] net: sfp: add qurik enabling 2500Base-x for HG MXPD-483II Message-ID: <5e9a87a3f4c1ccc30625c8092b057f0fbd8a9947.1680435823.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The HG MXPD-483II 1310nm SFP module is meant to operate with 2500Base-X, however, in their EEPROM they incorrectly specify: Transceiver type : Ethernet: 1000BASE-LX ... BR, Nominal : 2600MBd Use sfp_quirk_2500basex for this module to allow 2500Base-X mode anyway. https://forum.banana-pi.org/t/bpi-r3-sfp-module-compatibility/14573/60 Reported-by: chowtom Tested-by: chowtom Signed-off-by: Daniel Golle --- drivers/net/phy/sfp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index f0fcb06fbe829..5e515165ceab7 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -406,6 +406,10 @@ static const struct sfp_quirk sfp_quirks[] = { SFP_QUIRK_F("HALNy", "HL-GSFP", sfp_fixup_halny_gsfp), + // HG MXPD-483II-F 2.5G supports 2500Base-X, but incorrectly reports + // 2600MBd in their EERPOM + SFP_QUIRK_M("HG GENUINE", "MXPD-483II", sfp_quirk_2500basex), + // Huawei MA5671A can operate at 2500base-X, but report 1.2GBd NRZ in // their EEPROM SFP_QUIRK("HUAWEI", "MA5671A", sfp_quirk_2500basex, base-commit: d74aab2ca19842d16815a97d4dd605deaae73c69 -- 2.40.0