🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #11846

Re: [PATCH 03/17] net: phy: Attach generic PHY drivers through the driver core

#11846
From: Leon Romanovsky
Date: Thu, 05 Nov 2026 18:45
17 lines
9591 bytes
On Thu, Nov 05, 2026 at 04:33:48PM +0100, Andrew Lunn wrote:
> > +		if (err == -EBUSY) {
> > +			/* Another bind owns the PHY, so nothing was probed here. */
> > +			irq = phydev->irq;
> > +			err = -EPROBE_DEFER;
> > +		} else if (err == -EAGAIN) {
> > +			err = -EPROBE_DEFER;
> 
> You cannot return -EPROBE_DEFER here. You are not guaranteed to be in
> the context of a probe. Very likely, you are in the middle of the
> ethernet drives open() call. Both probes happened a long time ago.

You are right, thanks

> 
> 	Andrew
Technical Details
Message-ID: <20261105184510.GG8298@unreal>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357548-linux-kernel-netdev=dewy.ru
References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-3-1e536825b4eb@nvidia.com> <ce4a9030-be44-42b6-ab5b-b830bce3502b@lunn.ch>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357548-linux-kernel-netdev=dewy.ru
From: leon@kernel.org (Leon Romanovsky)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 03/17] net: phy: Attach generic PHY drivers through the
 driver core
Date: Thu, 5 Nov 2026 20:45:10 +0200
Organization: Usenet Network
Message-ID: <20261105184510.GG8298@unreal>
References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com>
 <20261105-device-trust-core-v1-3-1e536825b4eb@nvidia.com>
 <ce4a9030-be44-42b6-ab5b-b830bce3502b@lunn.ch>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3704407"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:789akZZN4bFkh2zbqdVumackb2U= sha256:CTpkKyPhYtnX4NcKd5VmENZSyj5y1tIwnxzdhDJcPo8=
	sha1:hixRRcj0m28mIIGZg+J/gk0M3ck= sha256:m7S1zLHGDuhNQm+IBGvLqtpybuSl+ja5MlqK1L0H5mo=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B14A4113066; Thu,  5 Nov 2026 21:51:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.301
X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id sOEpkozAx-Rq;
	Thu,  5 Nov 2026 21:51:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357548-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id BC567113063; Thu,  5 Nov 2026 21:51:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9B0222E0DE; Thu,  5 Nov 2026 18:45:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793904314;
	b=PuLC+o8jyByoGKUHLmfHygd8ManUMmCZCRz0ek5BTl+19Q9P9xlJtrJMH1f1p2PlNmuv
	 shMRVxGrM2c1KY8BwhqDjJEJINv1ph+TbB5hjO9R2clRU9ooOpAYXbFcdtAphaaIEx2tH
	 aN/xM7KhTI100JwZGedp6NxQAHOHNeCUrLR7KmfyPjXc6lMRP331KO7ZIRutoi775iak4
	 K0BT/vmq9r1UtnDHVi7EKrc4z2AxG8Y7F79BcQLvkgG3LfM3n2FbbsrFUCtS9eE7nvE+K
	 D1oZyet+NlPy1ZvgFIHX/OnHbuXdSK2BbAsaHxcUmwcP84vBMmp6STQRkK0mLoXxm1A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793904314;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=jkpPiFVr7OW6ZEzjFrqd12ut3tCHk/x8MPG6zAwfo3U=;
	b=4AZ56ZQRx87aQNYSAzEGIK6ddAdWYpf7U2ac6S92gPWpgeFWzXg137dKL2oqNKHAtNFR
	 Fo2APWP0wObGDGxnS3WsSbnDupW0cZeqJ8mWNFrLAAIpP2rDIE124s99C4vhsjQQhl9jM
	 YhXFy9/pLrez9ngHODI2Gb0WAFJWwkuDziunj2GWGAoPT+M8OzERWGxOoSzqo+Nur/d5L
	 S+8AkUKpI05/PgQg0w63kqTJ99V9iDjmOXVQ2WfU+KrgL7bMZmBzspxKOaKaRDDbTOgyG
	 ftCn3SYFawGphIdT5u01VWsYmH1SrQi7kRwuAn77/Wnl1rKTp2q+FfPQMTbbftZWR3g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=j+7DYonu;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id BE734606A330;
	Thu,  5 Nov 2026 18:45:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=j+7DYonu
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793904313;
	b=k1j6T7TCGNJZhJUxFcC9Tx33kQyoqGHuZDthqIznaUJknPbcbtgGfLqq3kR7of3yTZP9
	 8ham/Ed6NhU1DmO1Zf1/yDqFbYWD7X6XRChTfsqfNz0XtJ6Q7FZzOFvv34IFBZLvHUqXA
	 WA9CzZt97d6LCTGIFy1WDYyjennH2uP93blVmjMXvkDqGqo8mm7d1WBvYiEvl398yMXq5
	 MzNLhlTZDiv9+YN47THOIUCGl83fdOz7Yx1s0hdjuRN1sG+xfgOuNpgyq0MN1pIEb7+zV
	 i7VAuJp0Ee2lBFxjArOYaMwSuh7Fr83e3kKo1BIhn1IRVvZnLWj7PpiuR/Fj9HWqsCw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793904313;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=jkpPiFVr7OW6ZEzjFrqd12ut3tCHk/x8MPG6zAwfo3U=;
	b=YLLeNP1MikpaEdsnHqnJwla+FrRltTlOrPZvW3dgLszOqI/84AS4WMWFUgEGy/GCDWzW
	 Is/QVa3yv24vdUffRu96Mz/SoDk0bT+Q+itifWA8JvQnqF65/a70nTqPI1OvHZvIMyaSc
	 3KkYwdyx7PjsUVBPeR0yGd1JUnD/EP5A8QF3yuj0lPfue8+m4WAg03FEco2oLhUIpwhOX
	 rI4Tw6+EZY7Bwya3R53ucUNrc/qJ9vui+RQfxHMDRgZGIoeY1S93YhZPWj6tCELmwD7Pv
	 0Y7+dKRyXa1hgTA64H7Q4NGsuheulwgrT6QLiMktq1JIEx4PCKPCPZ3McmdZ2py7K4g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=j+7DYonu;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88DD6606A328;
	Thu,  5 Nov 2026 18:45:13 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62F951F000C1;
	Thu,  5 Nov 2026 18:45:12 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793904313;
	bh=jkpPiFVr7OW6ZEzjFrqd12ut3tCHk/x8MPG6zAwfo3U=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=j+7DYonurptTS7RzehMTEgOf9wG1aTqlc3KnZ72twymaiKE+9aaBYh4ZR3xt9nwNf
	 iPjcUqWcJJ/TmuZv4J0TW/MfZzL1KxNLzAq7nsspdZ5FXIWfuTZOkiEAlZtR7n9DdW
	 ic9w1kQ20zqlN4LBXtj07ur5q/WWXz1omMrRq26pEHJDna0AFm7GyILUQ0FHnuOf+M
	 NQK5SJ63eAvkrMwx24rKRR8KylGEG42KDpwihrgODiDHvL4S+o+OKBmpU1n8U92Pth
	 Pn2qD0Tss9S/1Vhg/R897RmGAOSKMYMQlnIlTHfejgwSx9LkiSKJdcBI+9MDWSnnGH
	 mM0tVYrycArRQ==
X-Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	"Joerg Roedel (AMD)" <joro@8bytes.org>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	Vasant Hegde <vasant.hegde@amd.com>, Will Deacon <will@kernel.org>,
	Robin Murphy <robin.murphy@arm.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Lu Baolu <baolu.lu@linux.intel.com>,
	Johan Hovold <johan@kernel.org>, Eric Dumazet <edumazet@kernel.org>,
	Marcel Holtmann <marcel@holtmann.org>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Nipun Gupta <nipun.gupta@amd.com>,
	Nikhil Agarwal <nikhil.agarwal@amd.com>,
	Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>,
	linux-kernel@vger.kernel.org, driver-core@lists.linux.dev,
	linux-input@vger.kernel.org, netdev@vger.kernel.org,
	linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-bluetooth@vger.kernel.org, linux-acpi@vger.kernel.org,
	linux-doc@vger.kernel.org, linux-pci@vger.kernel.org,
	iommu@lists.linux.dev, Jason Gunthorpe <jgg@ziepe.ca>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <ce4a9030-be44-42b6-ab5b-b830bce3502b@lunn.ch>