[PATCH v2 4/8] initcall: add of_populate_initcall
Marco Felsch
m.felsch at pengutronix.de
Tue Oct 20 12:18:53 EDT 2020
Hi Ahmad,
On 20-10-02 07:53, Ahmad Fatoum wrote:
>
>
> On 9/30/20 10:47 AM, Marco Felsch wrote:
...
> > @@ -61,9 +64,10 @@ typedef void (*exitcall_t)(void);
> > #define fs_initcall(fn) __define_initcall("9",fn,9)
> > #define device_initcall(fn) __define_initcall("10",fn,10)
> > #define crypto_initcall(fn) __define_initcall("11",fn,11)
> > -#define late_initcall(fn) __define_initcall("12",fn,12)
> > -#define environment_initcall(fn) __define_initcall("13",fn,13)
> > -#define postenvironment_initcall(fn) __define_initcall("14",fn,14)
> > +#define of_populate_initcall(fn) __define_initcall("12",fn,15)
>
> s/15/12/ ? (Likewise below)
I would like to keep it before late_initcall() due to the impact of that
initcall and following environment_initcall(). At least the
environment_initcall() assumes that devices are available to setup the
/env correctly. Therefore I added it before late_initcall(). I can give
it a try to move it behind the late_inicall if you want.
Regards,
Marco
> > +#define late_initcall(fn) __define_initcall("13",fn,12)
> > +#define environment_initcall(fn) __define_initcall("14",fn,13)
> > +#define postenvironment_initcall(fn) __define_initcall("15",fn,14)
More information about the barebox
mailing list