]> git.baikalelectronics.ru Git - uboot.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)
commiteb57e9c54f54a9c364174f565e825b11b21747a0
tree78bc2257f2d725955ac2145571ab586ac28d126a
parent3acc9738e23bc59dbacdb06647d40523a6c1ea6f
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