Message ID | 20230919124720.8210-1-ansuelsmth@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3687104vqi; Tue, 19 Sep 2023 14:20:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeB4+zvATRLej2CemaCesiDFR4cgcAbs9UqrO2Y5lK/x2j+ItC3P0Oju2ZlExkaqxMi7aj X-Received: by 2002:a05:6a20:7348:b0:157:978c:5b74 with SMTP id v8-20020a056a20734800b00157978c5b74mr879186pzc.0.1695158420828; Tue, 19 Sep 2023 14:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695158420; cv=none; d=google.com; s=arc-20160816; b=z7yMfWZF5XXIAyADLVg84BjNOz0mnm9UFKe/G7/SPZo3zCR3I2NpjAj8ZXH7UylZWp gPmfhi1fsaoUQh6OiAHFj5j3SzB/6lWTcmRNHsdCZarSDxQ7Am9Id7Ig3911/8C6+0Pi 4q9pfm7u1GmY/myI8aQ/nENpePGSoBksm5sMWE3e1nCSQ2Hs074Kkbod+eD9TRX3FjbC 6mRRI7VYIpd25dD8Xf9UHCiVi15MKTdSykpcDlqHy8JY43BG91sRmu3oyxOoD/7wYCZZ 4B8EL5IYHymdRYp9nkSMdndFdiqFV8dqDuS/A8I6m3Lh7GL/cPlYV+V9e/COnm8cWqDl OBBw== 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 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b7-20020a656687000000b00565d4a437b5si669124pgw.631.2023.09.19.14.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 14:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; 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 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 99765826FAB6; Tue, 19 Sep 2023 05:48:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232285AbjISMsL (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <ansuelsmth@gmail.com> To: Russell King <linux@armlinux.org.uk>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi <ansuelsmth@gmail.com> 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 groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 05:48:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777474055323170227 X-GMAIL-MSGID: 1777502436428034915 |
Series |
[net-next] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI
|
|
Commit Message
Christian Marangi
Sept. 19, 2023, 12:47 p.m. UTC
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 <ansuelsmth@gmail.com>
---
drivers/net/phy/sfp.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
Hi Russel, On Tue, 2023-09-19 at 14:40 +0100, Russell King (Oracle) wrote: > On Tue, Sep 19, 2023 at 02:47:20PM +0200, Christian Marangi wrote: > > 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. > > I'll send you shortly a different approach for the "ignore tx fault" > thing that I'd like you to test please. Said patch is not blocking this one, am I correct? Thanks, Paolo
On Thu, Sep 21, 2023 at 04:40:45PM +0200, Paolo Abeni wrote: > Hi Russel, > > On Tue, 2023-09-19 at 14:40 +0100, Russell King (Oracle) wrote: > > On Tue, Sep 19, 2023 at 02:47:20PM +0200, Christian Marangi wrote: > > > 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. > > > > I'll send you shortly a different approach for the "ignore tx fault" > > thing that I'd like you to test please. > > Said patch is not blocking this one, am I correct? Correct, but Christian has not responded in any way despite me sending him the patch that I'd like tested, which is very disappointing. This is what I fear - that merging his patch removes the incentive to test my patch. Oh well, I guess I will just send my patch that I can't test to be merged anyway, and to hell with it. If it breaks this and other modules, I'm sure someone will eventually send a report about that.
On Wed, Sep 27, 2023 at 10:51:17AM +0100, Russell King (Oracle) wrote: > On Thu, Sep 21, 2023 at 04:40:45PM +0200, Paolo Abeni wrote: > > Hi Russel, > > > > On Tue, 2023-09-19 at 14:40 +0100, Russell King (Oracle) wrote: > > > On Tue, Sep 19, 2023 at 02:47:20PM +0200, Christian Marangi wrote: > > > > 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. > > > > > > I'll send you shortly a different approach for the "ignore tx fault" > > > thing that I'd like you to test please. > > > > Said patch is not blocking this one, am I correct? > > Correct, but Christian has not responded in any way despite me sending > him the patch that I'd like tested, which is very disappointing. > I'm with you with the disappointment... I was helping a guy adding support for this upstream and then magically disappeared... Tried to send private email asking to test your followup patch but still no response... Sorry for not answering your email, was hoping to have a response and just give you a positive feedback but I think this won't come... > This is what I fear - that merging his patch removes the incentive to > test my patch. Oh well, I guess I will just send my patch that I can't > test to be merged anyway, and to hell with it. If it breaks this and > other modules, I'm sure someone will eventually send a report about > that.
On Wed, Sep 27, 2023 at 11:55:32AM +0200, Christian Marangi wrote: > On Wed, Sep 27, 2023 at 10:51:17AM +0100, Russell King (Oracle) wrote: > > On Thu, Sep 21, 2023 at 04:40:45PM +0200, Paolo Abeni wrote: > > > Hi Russel, > > > > > > On Tue, 2023-09-19 at 14:40 +0100, Russell King (Oracle) wrote: > > > > On Tue, Sep 19, 2023 at 02:47:20PM +0200, Christian Marangi wrote: > > > > > 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. > > > > > > > > I'll send you shortly a different approach for the "ignore tx fault" > > > > thing that I'd like you to test please. > > > > > > Said patch is not blocking this one, am I correct? > > > > Correct, but Christian has not responded in any way despite me sending > > him the patch that I'd like tested, which is very disappointing. > > > > I'm with you with the disappointment... I was helping a guy adding > support for this upstream and then magically disappeared... Tried to > send private email asking to test your followup patch but still no > response... Sorry for not answering your email, was hoping to have a > response and just give you a positive feedback but I think this won't > come... In my experience, unfortunately, this is what happens in circumstances like this. There are some cases where it doesn't happen but inevitably when it's someone who's popped up with a problem, that's all they care about. After a while one gets jaded over it. Thanks for trying anyway.
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Tue, 19 Sep 2023 14:47:20 +0200 you wrote: > 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 <ansuelsmth@gmail.com> > > [...] Here is the summary with links: - [net-next] net: sfp: add quirk for Fiberstone GPON-ONU-34-20BI https://git.kernel.org/netdev/net-next/c/d387e34fec40 You are awesome, thank you!
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