boot: Call flush() before booting
authorPali Rohár <pali@kernel.org>
Mon, 5 Sep 2022 09:31:21 +0000 (11:31 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 15:34:38 +0000 (11:34 -0400)
commitefc3f9526f9cfcd8614668c03b9c66b209782c41
tree75203cc106a2c1c340024fdb562be7c9b6d0e4e2
parent989cc40f806b68678e10203ec3b63d38d0fdd6eb
boot: Call flush() before booting

In a lot of cases kernel resets UART HW. To ensure that U-Boot messages
printed before booting the kernel are not lost, call new U-Boot console
flush() function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/bootm_os.c
cmd/boot.c
cmd/elf.c