From: Patrick Delaunay Date: Wed, 27 Feb 2019 16:01:17 +0000 (+0100) Subject: stm32mp1: spl: hang with trace when DDR init failed X-Git-Tag: v2019.07-rc1~27^2~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=105a5ad614f3cb8491df1825553993a0d45fa857;p=oweals%2Fu-boot.git stm32mp1: spl: hang with trace when DDR init failed When DDR initialization failed, print error message and stop the SPL execution. Signed-off-by: Patrick Delaunay --- diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index 501e077fb3..a3b0d6f382 100644 --- a/arch/arm/mach-stm32mp/spl.c +++ b/arch/arm/mach-stm32mp/spl.c @@ -111,7 +111,7 @@ void board_init_f(ulong dummy) ret = uclass_get_device(UCLASS_RAM, 0, &dev); if (ret) { - debug("DRAM init failed: %d\n", ret); - return; + printf("DRAM init failed: %d\n", ret); + hang(); } }