[PATCH 2/2] ath79: mikrotik: Change the moment of routerboot partition parser init

Robert Marko robimarko at gmail.com
Wed Nov 10 01:48:42 PST 2021


On Wed, 10 Nov 2021 at 10:45, Denis K <denis281089 at gmail.com> wrote:
>
> > Hi, wouldn't it be better for the rb_hardconfig_init to return
> > -EPROBE_DEFER so the
> > the core can try probing later?
> Hello, Robert! I've tried what you suggested (return -EPROBE_DEFER
> from rb_hardconfig_init and routerboot_init). It doesn't work.
> do_one_initcall() from linux-5.4.158/init/main.c calls module init
> function and it doesn't check return code and recall it later.

Ahh, yeah since it's not a platform driver.
Ideally, it should be converted to one so it has a probe method, and
then deferring will work.

Adding Thibaut as he is the original author, maybe there is a reason
why the platform driver approach won't work.

Regards,
Robert



More information about the openwrt-devel mailing list