]> git.dujemihanovic.xyz Git - u-boot.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)
commit016e2be96d4247ceacca05932f2e94d31607cc57
tree73d35b6b8c6cf4830f1fff287071d6ce0ce432b0
parent974f48366f5b151f13b91961ec7721e74fb54fa9
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