Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5394404rdb; Wed, 13 Dec 2023 07:31:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtD+nFh4PnTmCl81FfHTzSU0G7ONSehTIPcpMiAT1anm601OjCDwMBTNdhAzHB96AXyC50 X-Received: by 2002:a05:6a00:1ad1:b0:6cd:d6c0:d8d0 with SMTP id f17-20020a056a001ad100b006cdd6c0d8d0mr10500103pfv.24.1702481494754; Wed, 13 Dec 2023 07:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702481494; cv=none; d=google.com; s=arc-20160816; b=ymgjzBANe7GIrc2kVC97pRrgrxJflaPZMJjvbkPerXoZycCcpgKtxuaid4hjF2w9Xb I0GizArzxzOIkjX62lw8D+1vLqU465v6yiriWY2KGqWDYMoSJhqvvKr0rg8aBZZ69xny ETom6hUnzVBXG6Y6V4ZCeEdCXaK5vkJtqMfS2KzYne+QUZiTe30UVdw18dh7T6PX/ZLO NBY2O25FTz8r7rlUXmErTx7YXxR32ix1GlqDBK6zqQjwvvShDur/0rHXv5+MewuCBiZP xjUQH2SWhGcodAX98EDAOfkuCM6Qa+hMacNIKWhfXl8j5iBBK4a/GBbqRBq2wK1yAl0e ignQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9978jlZQf3NVTxyYkzi3XIo0ZbcfDevuq9k/9lHvdV4=; fh=XJe6NkmfFVbJa6+zE6YfqmYD2zNZZTDXvZteqpZgueY=; b=hsLykaZYERmEApB1I3C2mP/y+vapq4hN8GYHm6MdgDzKqDsqBgOwYJAtpqMSyb9z1G qlu8EMZHRXGCFrRoHPKk+Iv7Caoqd1eKO8htqUvvJgK2Q3oGndvkjkxDWnxIsKRQ4OD4 Mdpcd0K67XWxng37DXMfQA+g6B01yGlurf5C9TEvV7dW9VLlHMdS5BULR6laaY+CIk9y B63S5tJ5cIasN3a8NBu0gP9q1Z/cFwSDZ7/GQhEhphyqYCYlI8Nz7C+X7bG8vUVpZcrc 73Y7rnkME/VlQMvMtDM1f2oQzBzi7zx2wR2NE0UK4n4w3T0wd/R2fVyrprq8/VZr/Ntw BZrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=r07yZCGV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l66-20020a632545000000b005c14c9b2d90si9864380pgl.59.2023.12.13.07.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:31:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=r07yZCGV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6F8828060506; Wed, 13 Dec 2023 07:31:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442044AbjLMPbA (ORCPT + 99 others); Wed, 13 Dec 2023 10:31:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442131AbjLMPa2 (ORCPT ); Wed, 13 Dec 2023 10:30:28 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4231D3589; Wed, 13 Dec 2023 07:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9978jlZQf3NVTxyYkzi3XIo0ZbcfDevuq9k/9lHvdV4=; b=r07yZCGVUBvJzd9mCwnq2ujqOB G6mKzZ7BENeWo0nIxZur6VcFU283fasbIOUFsvpgix6Q7TxGxGNmU9S8XTuKUF/9XufeaSU/fAVGJ ZDP+2UgE4uKVDNS+9UfDRrOJWwrEhlGdWCPHssIaXhbZmgjzqQZLDYv9oKECYcVaXnC2/LN8zrwoW 6q21rIo1GxRN8H6tl+XmJqyNCJDdEdjEcwkvfngCx3JY18GB2XnhXCsY/oAA0i3axClNJ4EBtB4KO M99mU+wAZulBGPlInm94Y9b0QEPzsfgOSHlcnwWzwv/OYPPFlOkN33mKusLsD9d7sSbLdkhc82sH0 VrPUvDIg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49670) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rDR8y-00008g-0n; Wed, 13 Dec 2023 15:27:28 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rDR8y-0001b4-Qh; Wed, 13 Dec 2023 15:27:28 +0000 Date: Wed, 13 Dec 2023 15:27:28 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Maxime Chevallier , Daniel Golle , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: phy: skip LED triggers on PHYs on SFP modules Message-ID: References: <102a9dce38bdf00215735d04cd4704458273ad9c.1702339354.git.daniel@makrotopia.org> <20231212153512.67a7a35b@device.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 07:31:15 -0800 (PST) On Wed, Dec 13, 2023 at 10:08:25AM +0100, Andrew Lunn wrote: > On Tue, Dec 12, 2023 at 03:35:12PM +0100, Maxime Chevallier wrote: > > Hi Daniel > > > > On Tue, 12 Dec 2023 00:05:35 +0000 > > Daniel Golle wrote: > > > > > Calling led_trigger_register() when attaching a PHY located on an SFP > > > module potentially (and practically) leads into a deadlock. > > > Fix this by not calling led_trigger_register() for PHYs localted on SFP > > > modules as such modules actually never got any LEDs. > > > > While I don't have a fix for this issue, I think your justification > > isn't good. This isn't about having LEDs on the module or not, but > > rather the PHY triggering LED events for LEDS that can be located > > somewhere else on the system (like the front pannel of a switch). > > SFP LEDs are very unlikely to be on the front panel, since there is no > such pins on the SFP cage. > > Russell, in your collection of SFPs do you have any with LEDs? No, and we should _not_ mess around with the "LED" configuration on PHYs on SFPs. It's possible that the LED output is wired to the LOS pin on the module, and messing around with the configuration of that would be asking for trouble. In any case, I thought we didn't drive the LED configuration on PHYs where the LED configuration isn't described by firmware - and as the PHY on SFP modules would never be described by firmware, hooking such a PHY up to the LED framework sounds like a waste of resources to me. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!