summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/serial_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/serial_port.c')
-rw-r--r--drivers/tty/serial/serial_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/serial_port.c b/drivers/tty/serial/serial_port.c
index 2fc48cd63f6c..f2f7cdd3a54c 100644
--- a/drivers/tty/serial/serial_port.c
+++ b/drivers/tty/serial/serial_port.c
@@ -23,8 +23,8 @@
/* Only considers pending TX for now. Caller must take care of locking */
static int __serial_port_busy(struct uart_port *port)
{
- return !uart_tx_stopped(port) &&
- !kfifo_is_empty(&port->state->port.xmit_fifo);
+ return port->x_char || (!uart_tx_stopped(port) &&
+ !kfifo_is_empty(&port->state->port.xmit_fifo));
}
static int serial_port_runtime_resume(struct device *dev)