aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2014-09-06 11:08:02 +0100
committerMark Brown <broonie@kernel.org>2014-09-06 11:08:02 +0100
commitebb1d078e4a8f9f2e9d1c822823671d5131fc42f (patch)
treebe9269a9723668f009a352503137325f9e65093d /drivers/tty
parentec07e110ab9dce68c6125ada0cbb0907856fe6be (diff)
parenta8d97b1bd0c91fbc1be54d068b5f051b4f70b4f7 (diff)
Merge tag 'v3.10.54' into linux-linaro-lsk
This is the 3.10.54 stable release
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/serial_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index f87dbfd32770..0f1cc2c8c22a 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -241,6 +241,9 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)
/*
* Turn off DTR and RTS early.
*/
+ if (uart_console(uport) && tty)
+ uport->cons->cflag = tty->termios.c_cflag;
+
if (!tty || (tty->termios.c_cflag & HUPCL))
uart_clear_mctrl(uport, TIOCM_DTR | TIOCM_RTS);