aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2020-06-15 11:36:19 +0530
committerOliver O'Halloran <oohall@gmail.com>2020-06-30 12:07:23 +1000
commit53e4d7358c8f28f0338cad20ce6aac425b22da4c (patch)
treedd920d225bb5cddc496755d7e238deda32ccfc5f /hw
parent5021a037a79024719ea0ac6b755011315bf52028 (diff)
downloadskiboot-53e4d7358c8f28f0338cad20ce6aac425b22da4c.zip
skiboot-53e4d7358c8f28f0338cad20ce6aac425b22da4c.tar.gz
skiboot-53e4d7358c8f28f0338cad20ce6aac425b22da4c.tar.bz2
uart: Actually swallow data if LPC is not working
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/lpc-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index 10c5ed4..a584eba 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) {