Re: driver loading order
Warner Losh <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <CANCZdfqs_cpCypAA9AyOPad4fj0spVg+H15qFVvPdB67hq6-9A@mail.gmail.com> |
On Fri, Jun 16, 2023, 9:55 AM titus <[email protected]> wrote: > what is the correct method for loading drivers in a specific order > I hacked a driver for pwm-regulator so i can have cpufreq_dt > so rk_pwm/pwm needs to be loaded before the pwm-regulator driver and after > the clock > driver > i changed the pass arg for EARLY_DRIVER_MODULE and in the end it worked > but im not sure this is the best way > That's generally the best way for things like clocks and regulators. Those item enable other devices to work, so should be attached in an earlier pass. Warner thanks >