]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: Use -EAGAIN in getc and putc
authorPali Rohár <pali@kernel.org>
Sat, 10 Dec 2022 23:31:21 +0000 (00:31 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 2 Jan 2023 21:01:40 +0000 (16:01 -0500)
commit1138bbe05e617034cf542ac0bc13cfa804cb09f6
tree78bc2257f2d725955ac2145571ab586ac28d126a
parent59440d83d38bfed31931d11aa06a3fb56acbd2f0
serial: Use -EAGAIN in getc and putc

U-Boot serial code already handles -EAGAIN value from getc and putc
callbacks. So change drivers code to return -EAGAIN when HW is busy instead
of doing its own busy loop and waiting until HW is ready.

Signed-off-by: Pali Rohár <pali@kernel.org>
drivers/serial/serial_arc.c
drivers/serial/serial_lpuart.c
drivers/serial/serial_mpc8xx.c
drivers/serial/serial_mvebu_a3700.c