]> git.baikalelectronics.ru Git - kernel.git/commit
Set proper console speed on resume if console suspend is disabled
authorDeepak Saxena <dsaxena@laptop.org>
Sat, 19 Sep 2009 20:13:33 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:33 +0000 (13:13 -0700)
commitc2a2f94bff6388485af0e999af1527662d278c0a
tree9b593e0406eb0a1a11249d3d1b8767aab8206195
parentc596a0fbdde492b2900ab3370a5b170a8b650141
Set proper console speed on resume if console suspend is disabled

Commit 237273ea, from May 2007, breaks no_console_suspend on the OLPC
XO laptop. Basically what happens is that upon returning from resume,
serial8250_resume_port() will reconfigure the port for high speed
mode and all console output will be garbled, making debug of the
resume path painful. This patch modifies uart_resume_port() to
reset the port to the state it was in before we suspended.

Original patch by Marcelo Tosatti

Second patch by Deepak then reworked by Alan to fit with the tty changes
before it got submitted. Also fixed the console path to set c_i/ospeed as
some drivers require the termios fields are valid

Signed-off-by: Deepak Saxena <dsaxena@laptop.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/serial_core.c