From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 B34F7468C; Fri, 15 Dec 2023 03:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rDyLH-0004Mo-0I; Fri, 15 Dec 2023 02:54:24 +0000 Date: Fri, 15 Dec 2023 02:54:20 +0000 From: Daniel Golle To: Jakub Kicinski Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , 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> <20231214183123.0f0af377@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: <20231214183123.0f0af377@kernel.org> On Thu, Dec 14, 2023 at 06:31:23PM -0800, Jakub Kicinski wrote: > 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. > > Any suggestion of a Fixes tag? > Looks like the triggers were added a while back, are we only seeing it > now because we started exercising the code more? I've noticed this as a consequence of commit 2f3ce7a56 "net: sfp: rework the RollBall PHY waiting code" because (?) some PHYs on SFP+ now probe immediately as the previously enforced minimum delay now became a timeout. Blaming that commit would be wrong though, it's more that the problem has probably always been there and was just previously augmented by the delay.