Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6561473rdb; Fri, 15 Dec 2023 01:59:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8IO8ni4XuYltMgsh1cReQLoXI1O4rNH7Ucf5NNhTl6cvK3aX7C9//YI6iLeIYD8mueLwG X-Received: by 2002:a9d:7b42:0:b0:6d9:e0c7:1bd9 with SMTP id f2-20020a9d7b42000000b006d9e0c71bd9mr7216261oto.53.1702634388935; Fri, 15 Dec 2023 01:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702634388; cv=none; d=google.com; s=arc-20160816; b=AechGt2G3tynOF8lX+6te9ZdDB3PeLAvkokJKVR99DpAkEq6VBYM8oEoKpCQLApRxt SLPMk36S9k1EaFBALvCzcKeaqTUX30TQuQv8zwfw6h27oQArfNeTsOM28zS19lp/d0Oh eLwBEBaFMMoHIbpOUkdasjXELMUdBUnsypMvyDcQSLqoEztCqZczuDUotnuLfqcYTljY gUNStmRAzyotPPhOualRh3ihZwGK9lI9+N8JYYkXOc3DeD3LecqisVF3s6ycCWFtdSGc 30+f1fUEztCA1XfOhtKN+IL3qgDin0Eo1YwSNESY8gBsiAzk+rIqrmhLRBbCp7ekqyNb j/3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=yExJ2o/kc8OLXIlEOTC2J4B49akJNkoaJGJOI+Bu0FI=; fh=P0jootRC+bn9uSqVnrcJEnHgc7mg5N73xAyTvUSIfTk=; b=ZatWHQFqoIgR7QFze9/Nq8MvWqdHOpYi/mXJcWEupSEE1Qeu2E4x2mmyou0T3N5z0Z dk7ylbTKbFyVRgQBriDirXERMpwY6wS2Su/GlqfqVyR0fdl0E7D+iYz0shYZWI8EmL7h TdwjEFu4cXLTaXarlbb6zoWGXZ1ncF1DKuZ2Z29/g6K5my1kTKxx61+agzUOvXQ1ucCY dJRrVs+48MLsjs+QM4q67GoLGHROQUcD7Sl7ThKw/OMNpHcUZovavBErGh0vSmXWhgEu Cwm8zJurS8ppnskv38vIBM1Sa6N+1GzfHk5wZKT4Gh0Xgnfy1kl69k2jSdFmC/1Bgv5R QYDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=anZH1k01; spf=pass (google.com: domain of linux-kernel+bounces-714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e12-20020a65688c000000b005c5e2488c32si12865175pgt.405.2023.12.15.01.59.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 01:59:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=anZH1k01; spf=pass (google.com: domain of linux-kernel+bounces-714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8F5542846DD for ; Fri, 15 Dec 2023 09:59:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E7E418C19; Fri, 15 Dec 2023 09:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="anZH1k01" X-Original-To: linux-kernel@vger.kernel.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 0044518AF9; Fri, 15 Dec 2023 09:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 06B82240004; Fri, 15 Dec 2023 09:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702634372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yExJ2o/kc8OLXIlEOTC2J4B49akJNkoaJGJOI+Bu0FI=; b=anZH1k01slCSYKb4V1xZMlexTsV75XZ5Aka0I6oA6yhuAq38LsOora95YD8h0Stu6dgxxN 1hHFB1NUUAkctIBJ1r7ufRMIfsnAVMoJcUIMTNw4QQN5bVSTamR+BZH+rNsZY7hDmVsbfo cPTnLkRcJQS0LeeYKDDU3UH+6gS6dDGIItYCJGd8greNpvep2cUyI3LxSNM+yR7dDqHpnO I06jXnrzEmr5Rum39s6+z1V02ZU1J0vapuAtnwFASq4IcbVCPz5qufSgWoqWho24aPM3Of l0CH0XnFfo8awZNH9fTI6c8KTSjsjqEX5he9TMpKELzNdTlbQ3lg0k/5OtQ4hw== Date: Fri, 15 Dec 2023 10:59:28 +0100 From: Maxime Chevallier To: Andrew Lunn Cc: "Russell King (Oracle)" , Paolo Abeni , Daniel Golle , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , 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: <20231215105928.74608001@device-28.home> In-Reply-To: <37a66b85-3980-4553-8447-d040404bbc11@lunn.ch> References: <102a9dce38bdf00215735d04cd4704458273ad9c.1702339354.git.daniel@makrotopia.org> <20231212153512.67a7a35b@device.home> <6dd8d8b62d6db979d6c2197a4091ebc768e6610a.camel@redhat.com> <37a66b85-3980-4553-8447-d040404bbc11@lunn.ch> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hi Andrew, On Fri, 15 Dec 2023 10:46:18 +0100 Andrew Lunn wrote: > > I disagree with that - analysing the locking and coming up with a fix > > is likely going to be a lengthy affair, meanwhile the mainline kernel > > will deadlock on this. This patch prevents that deadlock at the > > expense of removing the LED triggers for the PHY-on-SFP which I don't > > think is a big deal considering the age of the PHY-based LED triggers. > > > > So I personally would prefer this patch to be merged while a > > different solution (that we have little idea at this point what it > > would look like) is sought. I would agree, I feel bad about delaying it , although as Daniel mentioned it's indeed the trigger registration that gets skipped. > So, if i'm reading this patch correctly, it only affects PHYs within > SFPs. > > The discussion went off on a tangent and also talked about media > converter PHYs, but from my reading of this patch, they are unaffected > by this patch. Do they however also suffer from this deadlock? Anybody > tested that? I can give it a try today (in a few hours probably, I'm experiencing a power outage right now...) and make sure the issue doesn't occur with media converter PHYs. Maxime > Andrew