From: Peter Hurley Date: Wed, 9 Jul 2014 13:21:14 +0000 (-0400) Subject: serial: core: Preserve termios c_cflag for console resume X-Git-Tag: v3.2.64~230 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6fad979c3847f80e0ed868ba3f083aab4032584;p=pandora-kernel.git serial: core: Preserve termios c_cflag for console resume commit ae84db9661cafc63d179e1d985a2c5b841ff0ac4 upstream. When a tty is opened for the serial console, the termios c_cflag settings are inherited from the console line settings. However, if the tty is subsequently closed, the termios settings are lost. This results in a garbled console if the console is later suspended and resumed. Preserve the termios c_cflag for the serial console when the tty is shutdown; this reflects the most recent line settings. Fixes: Bugzilla #69751, 'serial console does not wake from S3' Reported-by: Valerio Vanni Acked-by: Alan Cox Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: tty_struct::termios is a pointer] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed