]> git.dujemihanovic.xyz Git - u-boot.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)
commit989cc40f806b68678e10203ec3b63d38d0fdd6eb
treed50599477f4272ec2815939caaea122ae290be90
parent78b5243182be8fa222f6d496e7d49675fde4d09e
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