Commit 7834909f authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

tty: tty port zero baud open

If we have no speed set at some point then we should not raise DTR/RTS at
that point when opening as the tty is not ready
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0fdeceb8
...@@ -216,6 +216,7 @@ int tty_port_block_til_ready(struct tty_port *port, ...@@ -216,6 +216,7 @@ int tty_port_block_til_ready(struct tty_port *port,
while (1) { while (1) {
/* Indicate we are open */ /* Indicate we are open */
if (tty->termios->c_cflag & CBAUD)
tty_port_raise_dtr_rts(port); tty_port_raise_dtr_rts(port);
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
......
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