mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
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: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0fdeceb88d
commit
7834909f1e
@ -216,6 +216,7 @@ int tty_port_block_til_ready(struct tty_port *port,
|
||||
|
||||
while (1) {
|
||||
/* Indicate we are open */
|
||||
if (tty->termios->c_cflag & CBAUD)
|
||||
tty_port_raise_dtr_rts(port);
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
|
Loading…
Reference in New Issue
Block a user