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: omap-for-v3.17/fixes-against-rc2~165^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae84db9661cafc63d179e1d985a2c5b841ff0ac4;p=pandora-kernel.git serial: core: Preserve termios c_cflag for console resume 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed