[PATCH v2 2/2] generic: platform/mikrotik: use MTD notifier

Sergey Ryazanov ryazanov.s.a at gmail.com
Tue Nov 16 15:25:39 PST 2021

On Tue, Nov 16, 2021 at 7:07 PM Denis Kalashnikov <denis281089 at gmail.com> wrote:
> If the SPI probe is sufficiently delayed, the routerboot driver may fail
> to init as the routerboot partitions are not yet available.
> Register an MTD user notifier instead of doing straight init so that the
> init subroutines are only executed when the target MTD partitions are
> present.
> Because the init/exit routines can now be called outside of the kernel
> normal init/exit calls, they cannot be jettisoned and must always be
> available: the __init and __exit qualifiers are thus removed.
> Reported-by: Denis Kalashnikov <denis281089 at gmail.com>
> Signed-off-by: Denis Kalashnikov <denis281089 at gmail.com>
> Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>

Denis, Thibaut, nice catch and fix!

Reviewed-by: Sergey Ryazanov <ryazanov.s.a at gmail.com>

More information about the openwrt-devel mailing list