[Skiboot] [PATCH] uart: Actually swallow data if LPC is not working

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Jun 15 16:06:19 AEST 2020


Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 hw/lpc-uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index 10c5ed4fe..a584eba91 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -189,7 +189,7 @@ static size_t uart_con_write(const char *buf, size_t len)
 
 	/* If LPC bus is bad, we just swallow data */
 	if (!lpc_ok() && !mmio_uart_base)
-		return written;
+		return len;
 
 	lock(&uart_lock);
 	while (written < len) {
-- 
2.26.2



More information about the Skiboot mailing list