]> git.baikalelectronics.ru Git - uboot.git/commit
serial: Implement flush callback
authorPali Rohár <pali@kernel.org>
Mon, 5 Sep 2022 09:31:18 +0000 (11:31 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2022 14:47:01 +0000 (10:47 -0400)
commit750b93a8642830e84bba0e03dd7c89b7ea78b37e
tree73d35b6b8c6cf4830f1fff287071d6ce0ce432b0
parent18345348cf953a78519dd0c77b45e8057fdfca17
serial: Implement flush callback

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@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial-uclass.c