aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorJason Wang <jason77.wang@gmail.com>2010-08-21 03:14:41 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:20:01 -0400
commitca2e71aa8cfb0056ce720f3fd53f59f5fac4a3e1 (patch)
tree15efe06f0bbfaf2987fd7586afbac46fb9c999e9 /drivers/serial
parentd838016af3b15452043256acad0be63f215115ba (diff)
serial-core: skip call set_termios/console_start when no_console_suspend
The commit 4547be7 rewrites suspend and resume functions, this introduces a problem on the OMAP3EVM platoform. when the kernel boots with no_console_suspend and we suspend the kernel, then resume it, the serial console will be not usable. This problem should be common for all platforms. The cause for this problem is that when enter suspend, if we choose no_console_suspend, the console_stop will be skiped. But in resume function, the console port will be set to uninitialized state by calling set_termios function and the console_start is called without checking whether the no_console_suspend is set, Now fix it. Signed-off-by: Jason Wang <jason77.wang@gmail.com> Acked-by: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index cd8511298bcb..ff21200f94f4 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -2065,7 +2065,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
2065 /* 2065 /*
2066 * Re-enable the console device after suspending. 2066 * Re-enable the console device after suspending.
2067 */ 2067 */
2068 if (uart_console(uport)) { 2068 if (console_suspend_enabled && uart_console(uport)) {
2069 uart_change_pm(state, 0); 2069 uart_change_pm(state, 0);
2070 uport->ops->set_termios(uport, &termios, NULL); 2070 uport->ops->set_termios(uport, &termios, NULL);
2071 console_start(uport->cons); 2071 console_start(uport->cons);