|
@@ -2065,7 +2065,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
|
|
/*
|
|
/*
|
|
* Re-enable the console device after suspending.
|
|
* Re-enable the console device after suspending.
|
|
*/
|
|
*/
|
|
- if (uart_console(uport)) {
|
|
|
|
|
|
+ if (console_suspend_enabled && uart_console(uport)) {
|
|
uart_change_pm(state, 0);
|
|
uart_change_pm(state, 0);
|
|
uport->ops->set_termios(uport, &termios, NULL);
|
|
uport->ops->set_termios(uport, &termios, NULL);
|
|
console_start(uport->cons);
|
|
console_start(uport->cons);
|