Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83005
b: refs/heads/master
c: 6d4d67b
h: refs/heads/master
i:
  83003: a9978ea
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Feb 5, 2008
1 parent 08ddc31 commit e0fe86e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8c6bfa39d6bd7347f43937c8767ae145b61bcb4
refs/heads/master: 6d4d67beb963de8865499781b8523e5b683819c3
5 changes: 3 additions & 2 deletions trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
*/
termios->c_cflag &= ~CBAUD;
if (old) {
termios->c_cflag |= old->c_cflag & CBAUD;
baud = tty_termios_baud_rate(old);
tty_termios_encode_baud_rate(termios, baud, baud);
old = NULL;
continue;
}
Expand All @@ -380,7 +381,7 @@ uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
* As a last resort, if the quotient is zero,
* default to 9600 bps
*/
termios->c_cflag |= B9600;
tty_termios_encode_baud_rate(termios, 9600, 9600);
}

return 0;
Expand Down

0 comments on commit e0fe86e

Please sign in to comment.