[PATCH v3 5/6] serial: Call flush() before changing baudrate

Simon Glass sjg at chromium.org
Wed Sep 7 23:10:53 CEST 2022


On Mon, 5 Sept 2022 at 03:31, Pali Rohár <pali at kernel.org> wrote:
>
> 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 at kernel.org>
> ---
> Changes in v3:
> * Remove support from serial.c
> * Fix commit message
> ---
>  cmd/load.c                     | 5 +++++
>  drivers/serial/serial-uclass.c | 1 +
>  2 files changed, 6 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list