提交 7834909f 编写于 作者: A Alan Cox 提交者: 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: NAlan Cox <alan@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0fdeceb8
......@@ -216,7 +216,8 @@ int tty_port_block_til_ready(struct tty_port *port,
while (1) {
/* Indicate we are open */
tty_port_raise_dtr_rts(port);
if (tty->termios->c_cflag & CBAUD)
tty_port_raise_dtr_rts(port);
set_current_state(TASK_INTERRUPTIBLE);
/* Check for a hangup or uninitialised port. Return accordingly */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册