> 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/2026…@nvidia.com/2026…@nvidia.com/ Scroll down to "Maybe some background will help". Andrew