
7 Sep
2022
7 Sep
'22
11:11 p.m.
On Mon, 5 Sept 2022 at 03:31, Pali Rohár pali@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@kernel.org
drivers/serial/serial-uclass.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org