diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index df3a8c74358e45644765da1593d19ffd44d6664a..e7d9d65095dad7ebd66d2e04748769c0fe12e31c 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -2606,6 +2606,9 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport) if (uport->cons && uport->dev) of_console_check(uport->dev->of_node, uport->cons->name, uport->line); + if (uart_console(uport)) + state->pm_state = UART_PM_STATE_ON; + uart_configure_port(drv, state, uport); num_groups = 2;