Article View: linux.kernel.netdev
Article #22522Re: [PATCH] net: phy: avoid synchronous module request in async probe context
From: Andrew Lunn
Date: Wed, 25 Nov 2026 13:58
Date: Wed, 25 Nov 2026 13:58
13 lines
8654 bytes
8654 bytes
> The High issue is correct: request_module_nowait() would make the PHY > module load fire-and-forget and could race with phy_device_register() > and the MAC's !phydev->drv check. I dropped that approach in v2. > > v2 changes phy_request_driver_module() to return -EPROBE_DEFER when > current_is_async() is true. Sorry, i missed your patch. I've not looked at the details yet, but are you sure you are in a context that can return -EPROBE_DEFER. PHY drivers don't fit the usual driver model :-( Andrew
Technical Details
Message-ID:
<24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371359-linux-kernel-netdev=dewy.ruReferences:
<20261124070753.25972-1-18255117159@163.com> <179559227928.3135.10596298102368144827@kernel.org> <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371359-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: Wed, 25 Nov 2026 14:58:32 +0100 Organization: Usenet Network Message-ID: <24787f0c-e90e-45f1-a9f3-d0772fbafeaf@lunn.ch> References: <20261124070753.25972-1-18255117159@163.com> <179559227928.3135.10596298102368144827@kernel.org> <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="220508"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:aVxtNRoVVzauTk6UF6ShWGAUOag= sha256:iwCV97O9byIqSfa4oSmmraLwajFsPqhdCj8zYRuU6f4= sha1:YqnMT9uNdJTqa7wlh0j3NGooTP4= sha256:Kp8kxgOpA+Tr7vHMfq1qiEiwGltX1zzVITQoECwXdeA= 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 E4824125E69; Wed, 25 Nov 2026 16:59:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31 tests=[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 KjwCmkkqb-zJ; Wed, 25 Nov 2026 16:59:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371359-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 08DED125E6B; Wed, 25 Nov 2026 16:58:54 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 9B3403A289; Wed, 25 Nov 2026 13:58:52 +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=1795615129; b=ltodGKncQmo/yVFORkNE5fB0exlVc4lokebW1ogjFksMNzLny3gzcmzCk2AMQkbZ5Kgy Z/v+HztvVc3bwQTdSL5NsE7uJcRnMTmoMnK9AQwDTZh/c4A9i6eCUlkNlB6qrSmuS14lb 0tXTL1ftLw2MNDdA2qLkkBogcSTZDgtLGD0vThINYxbIBE3N+rdT21vmP5n5eRCQxeqlh ONwhN1MvdjIGyehobL1rC71RkOuWpRX1NaiL809MFUDQ1GuWw9v5EYgtI9vPe086FDRCU NSR5pcGTOI10v5P3ryjZHtvWruBExerTdG6gSKkgdICTIez/GmSjwgn3utnC0p3xI9w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795615129; 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=hzpmqjgO8djp6ij2getWiuhddEa68c9xJpimSoRUQRo=; b=AsTtSPtvLbMM9ozMkncGAn8lRHf2A0IeP5JwFYk2O/XyipFPAIDzgBASKR7i5OwrT8wz lnGFOAJnYv74mMCzPr0/6iiSMwRLsQf1D7fyKRUfsRQxWV4HgDvAIGxC+DU0qfhZSOgIX PAwssJyAxkMUKQXeR4halqsaABL53yCXBUKqYAQ6aTnpv+g4XU+jHHrINkKN1IlrVfzoU UpnVfwpRaddFUqYeHz6NA0MctR/iaaqSRkbuWYHJ9MmnFDIRbRZHDY6YKMT8eviCMVuJ6 vXNFHi9x7nUrrOMDbhpM55Clr4zvyb9P1mywpvqkw7Y/mT11S8LcmHjEnp8WQKdJOVg== 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=3McP75jK; 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 21BBB606A33C; Wed, 25 Nov 2026 13:58:49 +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=3McP75jK 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=1795615128; b=FfCLKTAaa6//p/aRdE4G2YApIvddTW3stjd+fC608E7V918SAl2qiFN07pdfFTh8InBf /UAcay/c98dPDj//Ejgrh1Vj/Z9WFMjUaBbXfFbxC8S+a9en8QneDplcso2S4vqrg+MAu pKuCMdWf6UrDnqFhvYEqep3E0J/u1lbIKvu/JTYM2S9R7NbClN3Jg1MzXoZ9KR0ph0aCD cr9FkFgsDry+Z88euA7p843N5/9zTQ/F2gwgu67gdwP4TJSLn+zpfccCocCE0sGe6xraS A3egY79HHenrLxV4JtnBes/0/AzuhoBqLtak+sRspjT1Fibp5DbzqYCLUu//Q1nTLxg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795615128; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=hzpmqjgO8djp6ij2getWiuhddEa68c9xJpimSoRUQRo=; b=O/h/vzTRAF6mDID6osgvIrXx9TvJH/iYdgyWKwIWyAPWA2OFvh+QquA6thAfSMvGm8Mz dWc8+r315w8Wm+3QHs1/80UnFg5KOWrItCs1ZAMTeGg2avRQUWiuwHZVnMqndnTpAVqGy CeK0LTgTx6fl6/UDqRrgAfZoygBIF3eOPN0GZtIplvQn9NXWvTlC5dmLP/i6jag8lccZE EZqhcvb7RqDtal6svsLNMRRdAq9RuaNio879ZQmpO60PJdsKL7NLGNBXSM7RNRCB1UcCt WSJmxhtPWaG+E4DyKualEG/A7dD3p8ad58DvmWlMIAH//zyZaJ9vAU1nQgAK4WVUxEQ== 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=3McP75jK; 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 F16A9606A32E for <netdev@vger.kernel.org>; Wed, 25 Nov 2026 13:58:47 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F16A9606A32E 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=hzpmqjgO8djp6ij2getWiuhddEa68c9xJpimSoRUQRo=; b=3McP75jKWCWplH1AEes39Pu9HU TWJDaaDCvV6vNgFVMnIY9id/ZJucwdBFVKttt2DedLaJfK+7g6tBgbZrq95y6utWghv4PC7og2ddS JhAHMdKluA1R3yQbvn+MeEGjfCOyp37uapR5NuT/amH3eCmh5/+z/H7gtNd3F6mSowt0=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xWDW4-001KRh-47; Wed, 25 Nov 2026 14:58:32 +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 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: <0437f8be-41ca-4fb8-b775-ed02413ea16d@163.com>