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

2022-12-10 Thread Pali Rohár
On Thursday 08 December 2022 10:45:49 Tom Rini wrote: > On Sun, Dec 04, 2022 at 01:36:55PM +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 lo

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

2022-12-08 Thread Tom Rini
On Sun, Dec 04, 2022 at 01:36:55PM +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

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

2022-12-04 Thread Stefan Roese
On 12/4/22 13:36, 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 Reviewed-by: Stefan Roese T

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

2022-12-04 Thread Simon Glass
On Mon, 5 Dec 2022 at 01:37, 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 > --- > d

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

2022-12-04 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 --- drivers/serial/serial_arc.c | 8 drivers/serial