Commit 0ba2db65 authored by Russell King's avatar Russell King Committed by Linus Torvalds

[SERIAL] Only update the console termios cflag once

parent 5b97704a
...@@ -1400,7 +1400,7 @@ static void uart_update_termios(struct uart_state *state) ...@@ -1400,7 +1400,7 @@ static void uart_update_termios(struct uart_state *state)
struct tty_struct *tty = state->info->tty; struct tty_struct *tty = state->info->tty;
struct uart_port *port = state->port; struct uart_port *port = state->port;
if (uart_console(port)) { if (uart_console(port) && port->cons->cflag) {
tty->termios->c_cflag = port->cons->cflag; tty->termios->c_cflag = port->cons->cflag;
port->cons->cflag = 0; port->cons->cflag = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment