Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp488495iob; Wed, 4 May 2022 00:54:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHuVPHJV4MIiY78nC/0tqzGI2QWjKlfYQRCxGugeiLhz1wGfr9ZuztpTVi0jeBRXI1DWFy X-Received: by 2002:a05:6a00:2353:b0:50e:15cf:268c with SMTP id j19-20020a056a00235300b0050e15cf268cmr5267768pfj.5.1651650887442; Wed, 04 May 2022 00:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651650887; cv=none; d=google.com; s=arc-20160816; b=Ii7PhGv6FmmAj/+yNeFyJcz6kae+TriEUBneviY+Bw4F1Nqn9ZzIJuBi+smabDHGSI jadkFlEjZ25tPVLDW4eX3dxrJoDdi6D0zaVo6lLPitwxP7dTzofO3Rv6YNmET9yX7CzC lDlfGUJmgXCphu9Mu5cH0bYbVhwYEqNgTt6cLdgPTEEot0Y6JdGJBbGXd6oL3FKQrCuT VIwwtXlwpPRg6xxZQgMGtBBQVvWot5lnj0KcI3JmlIdynIW/3qEC+9mS/Sbe4COCXxgk noCY2PwxOl5keABGmTYU0pkbS8D2GjoXT2hRJkB5ODifXJ5E7wcmK4Th13VDb++5Zj8C uS2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5nRXX6634CQNLfZ6ipk0BQhlHcwJJYgAi8oMmRtAiuU=; b=YWKch/ocsA8YS5tV+BVNoT7fQDqYzluDhkKBsYt9+x99KoNl3wlpOtXKZNyEUcJKKd xw23lm8nwptjvboYDzAZ4+8QMZEjm592pljoPI5Qft9gKb1+FdtnYwPyp4YzhHrRhaC1 7cqdNjVLwTSCeMG61flzS9mS7F7eZ6H/jyqBBQ+jRJIp97u7Db1k5DybYkuFVSdtZaAd sK5TEA/Zon7UD3QVFR/t5U4JJoXiCmxITRXMRuEC+YTEcWU9b7l6m52c+wdYz28Gj61Q PR7+TN2dc7hdHdKMybK+mcYat8iuLDWA8eyTgSZcTRmoC2WgRz0IJhCLJk9gXXLiP03/ Xg5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CTRSbush; 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 u7-20020a170903124700b00154319ca2ddsi20817922plh.397.2022.05.04.00.54.32; Wed, 04 May 2022 00:54:47 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=CTRSbush; 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 S243577AbiECWWf (ORCPT + 99 others); Tue, 3 May 2022 18:22:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243568AbiECWWc (ORCPT ); Tue, 3 May 2022 18:22:32 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A4E33ED27; Tue, 3 May 2022 15:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=5nRXX6634CQNLfZ6ipk0BQhlHcwJJYgAi8oMmRtAiuU=; b=CTRSbushjLoNRV4SKIDr693kYb zHLnUihRmklsiEH8B82ZMzVhj0/P+4RdrYcCYHn3kx32ctc3EbUQAwT7VGk71WOLRjhZZtFntsmfK 81GeRGBWO9ESaFiQX39VzUDSTG2EHPythdbDVdKWYGP1UmHx5USfIU/HgK5Lc4EzsBeA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nm0r1-0016xO-It; Wed, 04 May 2022 00:18:47 +0200 Date: Wed, 4 May 2022 00:18:47 +0200 From: Andrew Lunn To: Matthew Hagan Cc: Russell King , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: sfp: Add tx-fault workaround for Huawei MA5671A SFP ONT Message-ID: References: <20220502223315.1973376-1-mnhagan88@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220502223315.1973376-1-mnhagan88@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Mon, May 02, 2022 at 11:33:15PM +0100, Matthew Hagan wrote: > As noted elsewhere, various GPON SFP modules exhibit non-standard > TX-fault behaviour. In the tested case, the Huawei MA5671A, when used > in combination with a Marvell mv88e6085 switch, was found to > persistently assert TX-fault, resulting in the module being disabled. > > This patch adds a quirk to ignore the SFP_F_TX_FAULT state, allowing the > module to function. > > Change from v1: removal of erroneous return statment (Andrew Lunn) > > Signed-off-by: Matthew Hagan Reviewed-by: Andrew Lunn Andrew