From: Simon Glass Date: Thu, 7 Sep 2023 15:58:20 +0000 (-0600) Subject: x86: dm: Mark driver model as dead when disabling CAR X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6acc07236562a5dc9cf9e29b2fd889f8643652f5;p=u-boot.git x86: dm: Mark driver model as dead when disabling CAR When turning off CAR, set the flag to make sure that nothing tries to use driver model in SPL before jumping to U-Bot proper, since its tables are in CAR. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 335dacf47f..c15f11f8cd 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -230,6 +230,9 @@ void board_init_f_r(void) mtrr_commit(false); init_cache(); gd->flags &= ~GD_FLG_SERIAL_READY; + + /* make sure driver model is not accessed from now on */ + gd->flags |= GD_FLG_DM_DEAD; debug("cache status %d\n", dcache_status()); board_init_r(gd, 0); }