[PATCH] serial: Use -EAGAIN in getc and putc
Simon Glass
sjg at chromium.org
Sun Dec 4 22:16:49 CET 2022
On Mon, 5 Dec 2022 at 01:37, Pali Rohár <pali at kernel.org> wrote:
>
> 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 at kernel.org>
> ---
> drivers/serial/serial_arc.c | 8 ++++----
> drivers/serial/serial_lpuart.c | 8 ++++----
> drivers/serial/serial_mvebu_a3700.c | 8 ++++----
> 3 files changed, 12 insertions(+), 12 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list