From: Andrew Lunn <andrew@lunn.ch>
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
Date: Sun, 29 Nov 2026 16:38:30 +0100 [thread overview]
Message-ID: <b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch> (raw)
In-Reply-To: <cc92cbe1-b65e-4fe8-be18-baae49dfb53b@163.com>
> 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
next prev parent reply other threads:[~2026-11-29 15:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 7:07 [PATCH] net: phy: avoid synchronous module request in async probe context Hans Zhang
2026-11-25 7:37 ` netdev-bot+sashiko
2026-11-25 7:55 ` Hans Zhang
2026-11-25 13:58 ` Andrew Lunn
2026-11-26 3:52 ` Hans Zhang
2026-11-26 14:35 ` Andrew Lunn
2026-11-29 7:16 ` Hans Zhang
2026-11-29 7:46 ` Hans Zhang
2026-11-29 15:38 ` Andrew Lunn [this message]
2026-11-29 16:05 ` Hans Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b01fa0aa-c669-4b2e-b7da-dfa75511621e@lunn.ch \
--to=andrew@lunn.ch \
--cc=18255117159@163.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox