🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24183

Re: [PATCH] net: phy: avoid synchronous module request in async probe context

#24183
From: Andrew Lunn
Date: Sun, 29 Nov 2026 16:34
25 lines
9882 bytes
> The phylib change does exactly that: __mdiobus_register() returns
> -EPROBE_DEFER and lets the driver core's existing deferred-probe mechanism
> do the re-probe, rather than spawning any workqueue in phylib or the MAC
> drivers. For the corner cases you raised, I audited the mdiobus_register()
> callers and found three that fold -EPROBE_DEFER into a hard -ENXIO:
> lantiq_etop, smsc911x and smsc9420; the 4-patch series fixes those alongside
> the __mdiobus_register() defer.

https://elixir.bootlin.com/linux/v7.3.4/source/arch/powerpc/platforms/pasemi/gpio_mdio.c#L244

The error message is no longer correct.

https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/dsa/mv88e6xxx/chip.c#L3896

Same problem,

https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/altera/altera_tse_main.c#L158
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/arc/emac_mdio.c#L173
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c#L236
https://elixir.bootlin.com/linux/v7.3.4/source/drivers/net/ethernet/freescale/enetc/enetc_pf_common.c#L293

I will let you review all the calls to of_mdiobus_register().

  Andrew
Technical Details
Message-ID: <07b98d3c-c1c0-461e-8e38-8cdd29794b50@lunn.ch>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373579-linux-kernel-netdev=dewy.ru
References: <20261124070753.25972-1-18255117159@163.com> <179559227928.3135.10596298102368144827@kernel.org> <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com> <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch> <c1ee530d-21bc-4b50-881f-3be9b2654b9d@163.com> <04208d88-5611-4b08-b4a3-4030d75fa946@lunn.ch> <c0834daa-176e-454b-8408-3818ead9c688@163.com> <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com> <b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch> <7a5a6aa7-d521-4346-b2f2-d3548d726d9d@163.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373579-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: phy: avoid synchronous module request in async
 probe context
Date: Sun, 29 Nov 2026 17:34:23 +0100
Organization: Usenet Network
Message-ID: <07b98d3c-c1c0-461e-8e38-8cdd29794b50@lunn.ch>
References: <20261124070753.25972-1-18255117159@163.com>
 <179559227928.3135.10596298102368144827@kernel.org>
 <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com>
 <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch>
 <c1ee530d-21bc-4b50-881f-3be9b2654b9d@163.com>
 <04208d88-5611-4b08-b4a3-4030d75fa946@lunn.ch>
 <c0834daa-176e-454b-8408-3818ead9c688@163.com>
 <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com>
 <b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch>
 <7a5a6aa7-d521-4346-b2f2-d3548d726d9d@163.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1211489"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:z2ZkFNY9XQy1cmaNUDRGiDypza0= sha256:AkJrBOHMhPDjfHYLnQTBaPO+z1WWuZf2NZqXwt/cAvE=
	sha1:IT/9AiZRgLWVKMGRNKaJzgCbtfk= sha256:ez8wkkciWAh8FGDmmvmFbo/NtdGEuknWaLIel2tY51E=
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 5E7A5125F9A; Sun, 29 Nov 2026 19:34:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
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 kZwZmc-j16nh;
	Sun, 29 Nov 2026 19:34:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373579-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4EE0E125F99; Sun, 29 Nov 2026 19:34:40 +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 EA9B223F0F; Sun, 29 Nov 2026 16:34:38 +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=1795970078;
	b=mRZcSYJ2xXWTwy3mb9WwXpW1trBHfr+4bBlwhNvU6wslX3dGGiiSvhFCs9cWZ0s6y7p7
	 nvQ/8OUpVjCDRczSCTuPpmf0cvdlQXAcqYP7VyZa2RZcVNm2nIc4O1yOmbSMtgSoJFDgp
	 S7N9DxxXYxEkxZPhCEi7KsOvrRdBCFfPEtm5VSDhDYEn6L0pT4mFI8b/2qU2xNJMvQ/sw
	 bIeTsHszQUp1CNbU26SvOBGnYX/oOUFJPG8gCzMpfFM54s8rukcPVlDS14kt3To88haET
	 loRSzQH03zqflkn/22p0mAaCHNTzoHoIHXkZtkWZDBVWK0GZpoQx4yodORQRp0Vjg0Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795970078;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: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=7jEIK+avmKZcGHKIE0FnKO0K8F6cvmuC2XKKVQussFY=;
	b=A9qbzNuCiPGKtS1piBByHvLsewtbqzXjANBQ2eK2EcrCYtzhHevg2FnL78Eb5cNDrGEz
	 RK7FY4s6xsDCPXz0Tt0Mc4wneKhKexL86+wDX7plX+wigEgSlcDrBAlaEoh1qOfpzAWlG
	 m9o0Fij6qUk5drKNm/UaN5fjRtO9XXK/oqzM7TK488EddtKOu2FoyTkb8gN8hdRj17xss
	 ZQxkV8nxctR9nNFYEU/GVMysTwLzcr1nEv6q2XJM0oI2L8RVgx/mFoPkVyL5j/arjUucz
	 kySwLoa+y5oQpFxqhhAPBHHwTpqXehMt6Ax4dt/M/vxSyJX12fIS+8FtuJ7+Jv/VdaA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SdQ5PdrX;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	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 15411606A32C;
	Sun, 29 Nov 2026 16:34:38 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SdQ5PdrX
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795970077;
	b=zZzR/FaWz8Wpy0xTCs2UwLY+grwHMjZ9BHyyInVlZluUgTnvQJMsH01YYhnljkc27pYD
	 ESBeg7GbeIIYKlKH3SnjnqzWX2xeY1VST7j1EdbINF8tGrutR6y/QNAfdHf8iNB3GnC0r
	 rIeeZ2+AFE3tuCZECcOb8u4AcVvn4Qx63s3Y2nqpJbW/uYg3752yy+quRGFCZx8bDpUpI
	 YfknydcZ0gV4eFxSBBOSGP5AVTUCEcUEovwDofZeQi7759JRuNjpnoWDLYGSh46M6+IWw
	 L0nLE9Buaj7xAJpkgl7ri+wOLNuu4+ugJwNMLanEIeje0t4dAHoPFxfz5y8zhX5SPBg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795970077;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=7jEIK+avmKZcGHKIE0FnKO0K8F6cvmuC2XKKVQussFY=;
	b=fAVBw59Df0Ni77wLyL8M47A5y+4cWqeaJJx8I3jsdZj2WffEjH3c4TFfiDungl9xxEL7
	 dbn2E0lWDr7u9cAhOJGgntY6q9QLeRbChYI94kye7V9ffwRSnqNrSAUVLu50/JUCxtWfu
	 6CmQuu+08LbcgvtzzsTZl1I51WzDcpOu1YmWa+tO/fNQDqDk9htl4K0C/h5e/QknCJIBB
	 6YvWTrMLYftggrzRngHxuOS2YxmPgJL+w3knHZBzKBvZUuh4DkxwMmNbjZI8oM5WJkhvF
	 1C0fXMSfzTrqMWLxifh575cCLuTH1PiyLXZFRt8zSM+yH5sZ5G2G7X0cj9BE/nY5yqQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=SdQ5PdrX;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0FB0606A31C
	for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 16:34:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E0FB0606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-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=7jEIK+avmKZcGHKIE0FnKO0K8F6cvmuC2XKKVQussFY=; b=SdQ5PdrXvRxV9VpAURIavkrht+
	iO4ar/yRovK3szbhv0TsCzTTiSk3Oo6FgkiCwFNh7YRCdaMJufZWkL22VH0kVnOuJIw3fFABxjtnf
	Eu+QKVIcdb0D9hSNPlJVi8OrMppurzTwn4kM9iFV7VUdigxmmHhqD0S8kUyYvuqqtGgE=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xXhr5-002AfF-Vq; Sun, 29 Nov 2026 17:34:23 +0100
X-Cc: netdev-bot+sashiko@kernel.org, hkallweit1@gmail.com,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.kernel.org,
	Manivannan Sadhasivam <mani@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	Shawn Lin <shawn.lin@rock-chips.com>
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: <7a5a6aa7-d521-4346-b2f2-d3548d726d9d@163.com>