[PATCH v3 3/6] serial: Implement flush callback

Simon Glass sjg at chromium.org
Wed Sep 7 23:11:05 CEST 2022


On Mon, 5 Sept 2022 at 03:31, Pali Rohár <pali at kernel.org> wrote:
>
> UART drivers have putc/puts functions which just put characters into HW
> transmit queue and do not wait until all data are transmitted.
>
> Implement flush callback via serial driver's pending(false) callback which
> waits until HW transmit all characters from the queue.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
> ---
>  drivers/serial/serial-uclass.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)

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


More information about the U-Boot mailing list