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=1795966730; b=LRMLLLBTBt3REtwT2qnd70SBjr4blQPrNAxjgy653cAq//mj0XohjBXFRrGQAv78+imx lcoeI5lH8rSfNbmQo6EY2UlkQz8BSwKgoOTUntROKr9GLKLW67+37upgIkOtLKy+iBTna EGqqhRSuZvoM1NqNLT2Pg1W851Htl7gAXSnLtONBULM9eMcIuje/VCktuSw2jzUtVYRXa X3eiYmYGsDBx/UdWhFNhAoTYaC44oIe+/bFA9t7z107LMUqLaJ1gCPpabTo4gf9ICfkb4 LQed6cDeTmuyQrBJZvR8uGOynnvjLRlTcAvuTmm6zFD5jfZaPoCsMsmMwyUwl+zwgTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795966730; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=9WEUaFZmTynrB9yTwLh4dVJMR6htpZYIeGcuyj250os=; b=mM41KUi7bD1PIGtWyPh5R4v6i/XXPPHUvvkDVuNms1uvtwJ2P+T6+hg5H2qKbzT1FHiR nKcBV0ipV2cVkjxyu/L5btg7TWGgmDz30VcmdIt8l/nNkzVKkfKIkkqcaiAB7LVAlHKVr q0nKwbwX7AbLPdB1Xb65UsezxOV41HYVbJu4+ELiyVxNG584+8MamZ3f7rnh6uAYkQ+Od OoJOGh+CizVOCBj9jusJXMa4jFW7KpGk5GVvlrKYHSVrGbyugEKVMFN57wAqBFniHxUuf U3G90HNA68eiHHegzH4y94Z/mEYv7lAI/alh3RFst5sCMrsedbIhDmugX4xEl0KGQvA== 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=3f+JK2hm; 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 DAE32606A33C for ; Sun, 29 Nov 2026 15:38:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DAE32606A33C 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=3f+JK2hm 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=9WEUaFZmTynrB9yTwLh4dVJMR6htpZYIeGcuyj250os=; b=3f+JK2hmUq5x9DAz6UWVrozv2L RIK8DT4mRPXbwo9Y6aqDO5tBkm9zu90FInscylnaJUdK2zrFRU8ssHofYpXc4z9J5CW4in9qqr8Ku jlLM2EnnXmy2IHDw0y0WMLWyY9ITytmnrJF2ACyxH5jWmqwzXNyAWcKzZlzoHnPkJVhc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xXgz0-002AEp-BH; Sun, 29 Nov 2026 16:38:30 +0100 Date: Sun, 29 Nov 2026 16:38:30 +0100 From: Andrew Lunn To: Hans Zhang <18255117159@163.com> 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 Subject: Re: [PATCH] net: phy: avoid synchronous module request in async probe context Message-ID: 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> <04208d88-5611-4b08-b4a3-4030d75fa946@lunn.ch> 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: > Hi Andrew, > > After testing PROBE_FORCE_SYNCHRONOUS on the r8169 MAC driver, the WARN > still fires. The trace still starts at async_run_entry_fn and goes > through the parent Sky1 controller probe, so a child driver's probe_type > does not move it out of the async context. I suggest you work on this. This seems like a driver code bug, or maybe a PCI bug. PROBE_FORCE_SYNCHRONOUS should be respected. As far as i know, there is nothing which requires a subsystem to support async probe. It is an opt-in option. I'm not sure phylib can be made to work in async mode. Here is a reply to a different thread, which explains some background how phylib probes drivers: https://patchew.org/linux/20261109-device-trust-core-v2-0-3b12d9a9f861@nvidia.com/20261109-device-trust-core-v2-10-3b12d9a9f861@nvidia.com/ Scroll down to "Maybe some background will help". Andrew