[PATCH v3 4/6] serial: Implement serial_flush() function for console flush() fallback

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


On Mon, 5 Sept 2022 at 03:31, Pali Rohár <pali at kernel.org> wrote:
>
> Like in all other console functions, implement also serial_flush() function
> as a fallback int console flush() function.
>
> Flush support is available only when config option CONSOLE_FLUSH_SUPPORT is
> enabled. So when it is disabled then provides just empty static inline
> function serial_flush().
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
> ---
>  common/console.c               |  3 +++
>  common/stdio.c                 |  8 ++++++++
>  drivers/serial/serial-uclass.c | 10 ++++++++++
>  include/serial.h               |  5 +++++
>  4 files changed, 26 insertions(+)

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


More information about the U-Boot mailing list