]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/serial/serial_core.c
serial-core: skip call set_termios/console_start when no_console_suspend
[mirror_ubuntu-artful-kernel.git] / drivers / serial / serial_core.c
index cd8511298bcb75e091b4ca582e5a6a425e9bb570..ff21200f94f4a1632721a7f069fbb4996a15087c 100644 (file)
@@ -2065,7 +2065,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
        /*
         * Re-enable the console device after suspending.
         */
-       if (uart_console(uport)) {
+       if (console_suspend_enabled && uart_console(uport)) {
                uart_change_pm(state, 0);
                uport->ops->set_termios(uport, &termios, NULL);
                console_start(uport->cons);