Re: [PATCH v2] serial: Use -EAGAIN in getc and putc

2023-01-03 Thread Tom Rini
On Sun, Dec 11, 2022 at 12:31:21AM +0100, Pali Rohár 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

[PATCH v2] serial: Use -EAGAIN in getc and putc

2022-12-10 Thread Pali Rohár
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 --- Changes in v2: * Fix serial_lpuart.c code after Tom's review * A