diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 460a72d91bb..20563c509b2 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -2064,7 +2064,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) | |||
2064 | /* | 2064 | /* |
2065 | * Re-enable the console device after suspending. | 2065 | * Re-enable the console device after suspending. |
2066 | */ | 2066 | */ |
2067 | if (console_suspend_enabled && uart_console(uport)) { | 2067 | if (uart_console(uport)) { |
2068 | /* | 2068 | /* |
2069 | * First try to use the console cflag setting. | 2069 | * First try to use the console cflag setting. |
2070 | */ | 2070 | */ |
@@ -2077,9 +2077,9 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) | |||
2077 | if (port->tty && port->tty->termios && termios.c_cflag == 0) | 2077 | if (port->tty && port->tty->termios && termios.c_cflag == 0) |
2078 | termios = *(port->tty->termios); | 2078 | termios = *(port->tty->termios); |
2079 | 2079 | ||
2080 | uart_change_pm(state, 0); | ||
2081 | uport->ops->set_termios(uport, &termios, NULL); | 2080 | uport->ops->set_termios(uport, &termios, NULL); |
2082 | console_start(uport->cons); | 2081 | if (console_suspend_enabled) |
2082 | console_start(uport->cons); | ||
2083 | } | 2083 | } |
2084 | 2084 | ||
2085 | if (port->flags & ASYNC_SUSPENDED) { | 2085 | if (port->flags & ASYNC_SUSPENDED) { |