aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/serial_meson.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c
index d026f5a7a8e..934de2ab235 100644
--- a/drivers/serial/serial_meson.c
+++ b/drivers/serial/serial_meson.c
@@ -201,7 +201,10 @@ static int meson_serial_pending(struct udevice *dev, bool input)
return true;
} else {
- return !(status & AML_UART_TX_FULL);
+ if (status & AML_UART_TX_EMPTY)
+ return false;
+
+ return true;
}
}