[v3,3/3] fwu: Move boottime checks to EVT_POST_PREBOOT
Simon Glass
sjg at chromium.org
Wed Apr 1 22:25:14 CEST 2026
Hi Michal,
On 2026-04-01T06:03:43, Michal Simek <michal.simek at amd.com> wrote:
> diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c
> @@ -790,4 +790,4 @@ static int fwu_boottime_checks(void)
> -EVENT_SPY_SIMPLE(EVT_MAIN_LOOP, fwu_boottime_checks);
> +EVENT_SPY_SIMPLE(EVT_POST_PREBOOT, fwu_boottime_checks);
The tests in test/dm/fwu_mdata.c still call
event_notify_null(EVT_MAIN_LOOP) to trigger fwu_boottime_checks().
Since this patch moves the spy to EVT_POST_PREBOOT, those tests will
no longer work - the g_dev global pointer won't be populated. Please
can you update the tests to use EVT_POST_PREBOOT?
Regards,
Simon
More information about the U-Boot
mailing list