Messages in this thread | | | Date | Tue, 25 Apr 2017 09:01:54 +0200 | From | Lukas Wunner <> | Subject | Re: [PATCH] ACPI / GED: use late init to allow other drivers init |
| |
On Sat, Apr 22, 2017 at 12:48 AM, Sinan Kaya <okaya@codeaurora.org> wrote: > On 4/21/2017 6:43 PM, Rafael J. Wysocki wrote: > > +late_initcall(ged_init); > > Does this fix the problem? > > > > What about if the module in question is loaded after running > > late_initcalls? > > This fixed the issue for me where I had dependencies for QUP I2C driver > and GHES drivers. Both of them are modules and get probed via normal > module execution path. > > However, I'm open to improvements. Do you have a better suggestion? > I can try to add some _DEP stuff if it is present, but I remember Linux > doesn't like _DEP stuff too much.
Would it be possible to solve this by just returning -EPROBE_DEFER from the ->probe hook if the devices you depend on are not bound yet?
Alternatively, would it be possible to solve it with a struct device_link?
Thanks,
Lukas
| |