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

Simon Glass
2022-08-11T14:49:13Z

Hi Pali,

On Thu, 11 Aug 2022 at 06:39, Pali Rohár <pali@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@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@chromium.org>