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

Simon Glass sjg at chromium.org
Thu Aug 11 16:47:52 CEST 2022


Hi Pali,

On Thu, 11 Aug 2022 at 06:39, 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                 | 10 ++++++++++
>  drivers/serial/serial-uclass.c | 10 ++++++++++
>  include/serial.h               |  5 +++++
>  4 files changed, 28 insertions(+)

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


More information about the U-Boot mailing list