]> git.dujemihanovic.xyz Git - u-boot.git/commit
console: Use flush() before panic and reset
authorTony Dinh <mibodhi@gmail.com>
Wed, 15 Mar 2023 00:24:26 +0000 (17:24 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Mar 2023 16:51:08 +0000 (12:51 -0400)
commitc5f4cdb8eb60cbfc71b356204245a046c74a30c1
tree5405a399cb6f30e167e096766d75a378f99f30f3
parent45156edb168328602e494a00c37e2c4876087e0f
console: Use flush() before panic and reset

To make sure the panic and the reset messages will go out, console flush() should be used.
Sleep periods do not work in early u-boot phase when timer driver is not initialized yet.

Reference: https://lists.denx.de/pipermail/u-boot/2023-March/512233.html

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/lib/reset.c
lib/panic.c