]> git.baikalelectronics.ru Git - uboot.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)
commit3c1e3e059d2816d82885c14e45206013950bebc6
tree5405a399cb6f30e167e096766d75a378f99f30f3
parent8367d7e41a879108755233e511ba06b9052a9c0f
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