[PATCH] serial: pl011: Resend the character if FIFO is full in debug uart

2021-07-18 Thread Chen Baozi
pl01x_putc() might return -EAGAIN if there was no space in FIFO. In that case, high-level caller should wait until there is space and resend the character. Signed-off-by: Chen Baozi --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-18 Thread Chen Baozi
by judging CONFIG_DEBUG_UART_PL011 explicitly. Signed-off-by: Chen Baozi --- drivers/serial/serial_pl01x.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 17b26aed81..f00663a814 100644 --- a/driv

[PATCH v2] serial: pl011: Resend the character if FIFO is full in debug uart

2021-07-19 Thread Chen Baozi
pl01x_putc() might return -EAGAIN if there was no space in FIFO. In that case, high-level caller should wait until there is space and resend the character. Signed-off-by: Chen Baozi Reviewed-by: Stefan Roese --- drivers/serial/serial_pl01x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-21 Thread Chen Baozi
by judging CONFIG_DEBUG_UART_PL011 explicitly. Signed-off-by: Chen Baozi --- drivers/serial/serial_pl01x.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 8ff19acf33..9322a8a6f6 100644 --- a/driv

[PATCH v3] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-21 Thread Chen Baozi
by judging CONFIG_DEBUG_UART_PL011 explicitly. Signed-off-by: Chen Baozi --- drivers/serial/serial_pl01x.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 8ff19acf33..67caa063c9 100644 --- a/driv