From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 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== 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== 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 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 ; Tue, 1 Dec 2026 13:40:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 50076606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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 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=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xYO5k-002coK-Dv; Tue, 01 Dec 2026 14:40:20 +0100 Date: Tue, 1 Dec 2026 14:40:20 +0100 From: Andrew Lunn To: Hans Zhang <18255117159@163.com> 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 Subject: Re: [PATCH 0/4] prepare MDIO callers for -EPROBE_DEFER from __mdiobus_register() Message-ID: <8541a0f4-8f25-47ab-89ec-4e37a48358e8@lunn.ch> References: <20261130023745.820141-1-18255117159@163.com> <8e19948b-2376-4913-82cc-281bd924c668@163.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e19948b-2376-4913-82cc-281bd924c668@163.com> 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