Article View: linux.kernel.netdev
Article #25303Re: [PATCH 0/4] prepare MDIO callers for -EPROBE_DEFER from __mdiobus_register()
From: Andrew Lunn
Date: Tue, 01 Dec 2026 13:40
Date: Tue, 01 Dec 2026 13:40
28 lines
9219 bytes
9219 bytes
On Tue, Dec 01, 2026 at 12:19:54PM +0800, Hans Zhang wrote: > Hi sashiko, > > > Thank you for the review. The High issues are valid. > > v2 will: > - drop the smsc9420 change, since its mdiobus_register() call is in > ndo_open rather than a probe path, and the v1 version could return > success after a PHY probe failure; You need to be careful here. What context is open called in? Can you return EPROBE_DEFER here? Generally no. What makes this interesting is things like NFS root. You pass on the kernel command line all the parameters needed to connect to the NFS server. Deep within netdev_register(), generally called from probe, it can open the device, and start sending packets in order to connect to the NFS server. So the device is alive and running before netdev_register() even returns. If probe was called in async mode, can open be called in async mode, resulting in an EPROBE_DEFER from mdiobus_register? What happens then? Does it all correctly unwind and the probe is tried again later in sync mode? Andrew
Technical Details
Message-ID:
<8541a0f4-8f25-47ab-89ec-4e37a48358e8@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-375120-linux-kernel-netdev=dewy.ruReferences:
<20261130023745.820141-1-18255117159@163.com> <8e19948b-2376-4913-82cc-281bd924c668@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-375120-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 0/4] prepare MDIO callers for -EPROBE_DEFER from __mdiobus_register() Date: Tue, 1 Dec 2026 14:40:20 +0100 Organization: Usenet Network Message-ID: <8541a0f4-8f25-47ab-89ec-4e37a48358e8@lunn.ch> References: <20261130023745.820141-1-18255117159@163.com> <8e19948b-2376-4913-82cc-281bd924c668@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1725081"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:h7O32sAscjljw/vE6sCRibCzFmI= sha256:2SLfrTcdQAzIGQwC2XT5UUoqCRannzrhCR3E9yuILmw= sha1:1yNRn64MBOwG/TTILBCZeW8Vfdc= sha256:NuhvdH4FQm+/HPjc7CQzs4sALxyi+xwm/Eb4re4cX54= 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 7DF6C1173C3; Tue, 1 Dec 2026 16:40:47 +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 hmlUH7QGvGuc; Tue, 1 Dec 2026 16:40:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375120-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 C2B481173C2; Tue, 1 Dec 2026 16:40:35 +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 CD02D2EF81; Tue, 1 Dec 2026 13:40:33 +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=1796132433; b=QnSA00FQ6Gz7gejnfOiC7WR4f1wT4KatjIVIYvJmgg+aLEW5bEe1aoUBME3XuIX4e1RW LIChUJlZMBf73quNaLUkft39y8/cY1mWDk0GMPN7MjC3NuoCmM9InsQN4wTrm316sbwmA Ol7a7dhZoeW9m8YkQRWFKhnQUd07968JffvRIVC6uxbwiytTXhLDOq0HchthorLMw/uHo LVEgpGM5ImZkoRS44PZk/FyoyUaFuFZ+C3/AWZISF97+s3K03ZXbMQ+AdZa3Bgaw2boHN yyIwXnuYr8z0rFmHNViHZjEPZoo+nBcYgOM0GynGGWFWPLRBcK1UhhuukNNRMOnIgQg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796132433; 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=VzvXOdvVJEjfJpAdiYDKt4qqElojaBZoTDdBh4rKbEE=; b=LKxwxxd9Uu/9X84uA8MOd4DSjVWaqvvUcDBlzRX9jFx2KAAdtIj+Vy0/XtYRkkYCn38w GskpRy8JvQHTQvV6Rn0V6F2VpXRLDHUWd4WGLWEXWuFza0bybDPQ05I0m0mbaOmwRTQr5 upKfNzTKSMtZSNgxrtwuWGpdhm5xt4nCfMALlOFHe2KIRG0OLyp2H0QCI3Gb+c73mHpUU DcGIaMMy95ZsWXHTKuT2+ck6c0ho/IYk2I5ezKtHH2SnznsJ3dcXrbV9JEuh+nlh21CeF 8yg31+GAUO8KLjoN4fFgpXV+UQqdA1G/DD5Kb5kFk6pBK4cblue0aEMfzTl8z2SbuNg== 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=ARg0Oj9U; 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 7D98D606A32A; Tue, 1 Dec 2026 13:40:33 +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=ARg0Oj9U 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=1796132432; b=Y8uAguJ1GO+pjcDreOV7MljYtWzdbIcsmAmkeHKF1VQ87JtCwImWI4xJGW3hKBrJm1w2 VZyZQlWNr4obQQawnYIA6bg5tf/0apVxyvrTAMOxvTE0/iNn/patNYSP6axvRQ2c00mBW mqPIBi0nla/CELKqf4d63dSJZpDKYih4a4w8IZ1EWJBR4SdPIpS/1AymFAgcm3ilwYUnT lbSXfS0TyLmN0rBGFnQSjiKs8r4vlLGQeAx5bX9Xkw/MJ8vB6XBX75fphwQfutpsd619m E/wPoqI9+i/bAOuMGcyZ5oCDYaou9MCAlA3JV8dvzZyaKOHiiW/RUe8EdfS7q7hdwgg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796132432; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=VzvXOdvVJEjfJpAdiYDKt4qqElojaBZoTDdBh4rKbEE=; b=uElwOujGGx830AA3gQ+L1vhhAS3aI6RPS8Oq2K1gg/jdsQK4m43JySyCRnTlwB0XlPBR yK7qwQeSDViutvwQ7qxoUNev68R/HasnxvCVej1YmUpSfEWa4sGfIdW8yaXwkkeCA9mi3 SnHPCwsOe97+WyUIlxgrKA1dVY3wAMdDQimBfrW4bh5Rj9kKRKxCh8Gjt/gTJr+BEv1o2 PoLTVS2H+/4Q68ETDJa+oQ9F3Rb9dJf7svYvXsH3HVK7fRJtxV+dlUgT5pwenetQM25oP dmfqSTgLpFZ85uDpaHFb56iUFZ0E9QLytGqSxMcaXQNQUuEJLQtBakOqvGUfLbjiuUw== 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=ARg0Oj9U; 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 50076606A325 for <netdev@vger.kernel.org>; Tue, 1 Dec 2026 13:40:32 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50076606A325 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=VzvXOdvVJEjfJpAdiYDKt4qqElojaBZoTDdBh4rKbEE=; b=ARg0Oj9Ue/FSLf1giCD79Hcx9l mEQySU6UT8FBvNiNFIo8CKgrUISWlz1lMz7jNJHlm4iqjZNLYLaDwlsvr9WhmAO1PjcpowNlJdy86 yOz3XJvRFDDdnkjOXbut5N/Plixai7J5MhtOdgKVWShaRvAIUn6IizUKEx49bYkEguE0=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xYO5k-002coK-Dv; Tue, 01 Dec 2026 14:40:20 +0100 X-Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.kernel.org, netdev-bot+sashiko@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: <8e19948b-2376-4913-82cc-281bd924c668@163.com>