Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp662612rdb; Tue, 19 Sep 2023 06:51:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0yzi6jyGbnu7yPDCnvmgnNGnSHjnr/1yaHxEi8IvxbzJiNDf+N2Yy44Tvbu4M7F/+fiB6 X-Received: by 2002:a05:6358:430c:b0:142:f9dd:5aa with SMTP id r12-20020a056358430c00b00142f9dd05aamr14687893rwc.0.1695131517257; Tue, 19 Sep 2023 06:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695131517; cv=none; d=google.com; s=arc-20160816; b=oDRwR80gAO9KIMFutVH2MnTTxM/u/+Wa1+7pmINGe+IQ187Ka1QPBYE0G9AcKZAQ8V HcnOFBwedqmgDYvCkmXUns1Slt4yz4Eydb4UusM6t7GqOqE9w4J1bD7A891uGyfP66gq Hm7Fl63MzuVWdgkKbHzOpTLNBij8MPE/s5S4fAK35vuTD/JmtAFd5SOeoIaerG9G2EiK TfbdA1v1LYMTTh1FmO5ZMiwPdna/w74NazTDYvNkasClXr5R4lPopEXE9QMF4Amj0KhQ m7jf3Lz9F6+57qrsw8B66wJX14kK8HuxYduh3GeGbPQrSPXfGuc84XrKss2oxTNnP17V iMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EYMn3AygfH8oGBjI8Ur4iGu9uPt05ofKGfO+WLaXkrM=; fh=E8+Ta7hOa+J/tkpXqjdVFpiHz+hV1GJbcbLQ4Tfmwcw=; b=iCRLl3+IiBKnOt/TOCfDfbg0YiKpQzPZyFOzcmUaKt+zrmEPrjHHJZoejtOzRXnq2P 6iH1M+tWUmOi2WacVadk5XmOfcLt3mHkILPnfgnHkoFtAyZ0F3uZqE4DZMmzaGVW0ExJ gT+UpwzuanpflJrm2tbgOpxy9zsYT0iy3jv0SG5LkH8t0Xa950MZFLrKxzCAf390UEJ5 3bs/kTWjc0PuAlMInNb5iEpswyjWAloTFLnbvOL2zrzL2SZerzp0N7QCmJXw6HuUmeFd aSlKYGRuaB09jpZPFSwfJU+U+yRLi/uKPwScAne0WpPgCjKuJT3ph/NjMKooPaQgBQqH oReg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="L/iad2IR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b00578ca217740si379557pgb.711.2023.09.19.06.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 06:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="L/iad2IR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5A24B8253511; Tue, 19 Sep 2023 05:48:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232274AbjISMsL (ORCPT + 99 others); Tue, 19 Sep 2023 08:48:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbjISMsH (ORCPT ); Tue, 19 Sep 2023 08:48:07 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907EB1AE; Tue, 19 Sep 2023 05:47:49 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40473f1fe9fso58139935e9.2; Tue, 19 Sep 2023 05:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695127668; x=1695732468; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EYMn3AygfH8oGBjI8Ur4iGu9uPt05ofKGfO+WLaXkrM=; b=L/iad2IRVX509Px19agdcHde7sjbtQGgOFxK+jQ52yC4qAXPD8vUdfkldFOe0EQTiy AIc0vj0hSmLvaQXOHdgmtfpMoxNCyAHLSsOx3t4ZctHCvJFewnS7HXuExVHryVtynZcY uQkgFe7Cxyyn6pMU469UgE9Uc9SL0g/HaixQsl88sbq5qPC77o9vCvfv7UoDA4wsm1+Z 1lp+lUWyaAgmrU0slEAZB56KW3kROKy1LJXq/2TRjB7QDXpjwccc6AupUnBljLEbXQeu DUOBx5HE2Xmx1RR70JgGo7OodmHHR4dBHQK0icAJb+m68ONXTIIU3xMWmIJrohkxCzhY YmFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695127668; x=1695732468; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EYMn3AygfH8oGBjI8Ur4iGu9uPt05ofKGfO+WLaXkrM=; b=pbO0SOjQB7nNLRhbp7yHNO4ykeAWcmC/Yor3VGjCRhEDWNQXGFnncO1mlMonRtzLN9 0x7wYhqytrBpWE9+dJOyyVwk1mTM+rLoRcSgTD9N/C+TLSZS9Q6WNOmCaVNSA8sI1SOv ii+wq4XjB5jKaNyvUp5JYC2LRaM+gX3pQCQS39i5wPlZz5VBe8avvnAI+qAk+0Mn5Lxu Jr4ztC/CT2fseYnP8H1iAIGP9aofh13qrouNotuFlQs/ZLebta+m2fI4hvg4F+azlYcW ogJojE3vb7xIX9vZ7kTYq7X2htyIruYJvMcW252S5WXBuVwoDlBIIQ59IUGPn+O6xGs0 8tfQ== X-Gm-Message-State: AOJu0YwqMZEMqmYx6BAEizkuAefD6P5hZHSFwFiUopBu0xK0YwqdKAS9 FfD5y9SZWx1s1SQZm97EsnQ= X-Received: by 2002:a05:600c:218f:b0:401:bf56:8bb2 with SMTP id e15-20020a05600c218f00b00401bf568bb2mr10765901wme.10.1695127667596; Tue, 19 Sep 2023 05:47:47 -0700 (PDT) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id m10-20020a7bce0a000000b003fee53feab5sm15265738wmc.10.2023.09.19.05.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 05:47:47 -0700 (PDT) From: Christian Marangi To: Russell King , Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI Date: Tue, 19 Sep 2023 14:47:20 +0200 Message-Id: <20230919124720.8210-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 05:48:47 -0700 (PDT) Fiberstone GPON-ONU-34-20B can operate at 2500base-X, but report 1.2GBd NRZ in their EEPROM. The module also require the ignore tx fault fixup similar to Huawei MA5671A as it gets disabled on error messages with serial redirection enabled. Signed-off-by: Christian Marangi --- drivers/net/phy/sfp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 4ecfac227865..a50038a45250 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -452,6 +452,11 @@ static const struct sfp_quirk sfp_quirks[] = { // Rollball protocol to talk to the PHY. SFP_QUIRK_F("FS", "SFP-10G-T", sfp_fixup_fs_10gt), + // Fiberstore GPON-ONU-34-20BI can operate at 2500base-X, but report 1.2GBd + // NRZ in their EEPROM + SFP_QUIRK("FS", "GPON-ONU-34-20BI", sfp_quirk_2500basex, + sfp_fixup_ignore_tx_fault), + SFP_QUIRK_F("HALNy", "HL-GSFP", sfp_fixup_halny_gsfp), // HG MXPD-483II-F 2.5G supports 2500Base-X, but incorrectly reports -- 2.40.1