projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fdeceb
)
tty: tty port zero baud open
author
Alan Cox
<alan@redhat.com>
Fri, 2 Jan 2009 13:46:43 +0000
(13:46 +0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:40 +0000
(10:19 -0800)
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>
drivers/char/tty_port.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/tty_port.c
b/drivers/char/tty_port.c
index ff94182b381368b81543abdc4c2f0641d4e3c92d..0723664fe0ab5487d95be284b7c5a5c12139ddfb 100644
(file)
--- 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,
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 */