Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54D37182D4 for ; Fri, 9 Jun 2023 15:31:49 +0000 (UTC) Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2990F19B for ; Fri, 9 Jun 2023 08:31:48 -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=maiG+YXu2aUk5nNmQicT7qxGsFvxt2fzbmC92fSVs4Y=; b=3y1SOyAjOQIIgkSTV4E7iMOj2p hyXp4WJRsI4yGOH/F8xyWkV0094VagA2xxDv6K2vXaUKvvAgzS+1OjMlZDFvuzHPjC7oNJKcINjOl 18EFroMQvnbOlgxgjW2jvTLfnNi+F/om4V96+/Ef96qYu5Tni+IclgDROjjJtyzCYx7Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q7e5W-00FMM3-QQ; Fri, 09 Jun 2023 17:31:42 +0200 Date: Fri, 9 Jun 2023 17:31:42 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: mkubecek@suse.cz, danieller@nvidia.com, idosch@nvidia.com, netdev@vger.kernel.org, vladyslavt@nvidia.com, linux@armlinux.org.uk Subject: Re: [PATCH ethtool-next] sff-8636: report LOL / LOS / Tx Fault Message-ID: <7aaec2ea-5459-46c6-877c-41d9cf93bcc1@lunn.ch> References: <20230609004400.1276734-1-kuba@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230609004400.1276734-1-kuba@kernel.org> 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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net > I was asked if "Linux reports" this information. Linux does, in /sys/kernel/debug/sfpX/status. It gives your the GPIOs value. But this assumes you are actually using Linux to drive the SFP. Andrew