]> git.baikalelectronics.ru Git - uboot.git/commit
serial: Call flush() before changing baudrate
authorPali Rohár <pali@kernel.org>
Mon, 5 Sep 2022 09:31:20 +0000 (11:31 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 15:34:38 +0000 (11:34 -0400)
commita3bea68e638c58a97e3a4a23a39f22139d4528f9
treed50599477f4272ec2815939caaea122ae290be90
parent92bb46a943009958a5777d9d20fcf934976ff7e6
serial: Call flush() before changing baudrate

Changing baudrate is a sensitive operation. To ensure that U-Boot messages
printed before changing baudrate 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>
cmd/load.c
drivers/serial/serial-uclass.c