diff options
author | Alan Cox <alan@redhat.com> | 2009-01-02 08:46:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:40 -0500 |
commit | 7834909f1eb96ba7c49ca2b9e3a69b500a2cff76 (patch) | |
tree | 2b9c903d63de8f426b1b55f4d9401406fc0cf83f /drivers | |
parent | 0fdeceb88df7f4d9e4734859bcd650e8584cc0e4 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/tty_port.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c index ff94182b3813..0723664fe0ab 100644 --- a/drivers/char/tty_port.c +++ b/drivers/char/tty_port.c | |||
@@ -216,7 +216,8 @@ int tty_port_block_til_ready(struct tty_port *port, | |||
216 | 216 | ||
217 | while (1) { | 217 | while (1) { |
218 | /* Indicate we are open */ | 218 | /* Indicate we are open */ |
219 | tty_port_raise_dtr_rts(port); | 219 | if (tty->termios->c_cflag & CBAUD) |
220 | tty_port_raise_dtr_rts(port); | ||
220 | 221 | ||
221 | set_current_state(TASK_INTERRUPTIBLE); | 222 | set_current_state(TASK_INTERRUPTIBLE); |
222 | /* Check for a hangup or uninitialised port. Return accordingly */ | 223 | /* Check for a hangup or uninitialised port. Return accordingly */ |