Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38903
b: refs/heads/master
c: 4d5e392
h: refs/heads/master
i:
  38901: 2119b9a
  38899: d60399d
  38895: 256abab
v: v3
  • Loading branch information
Haavard Skinnemoen authored and Linus Torvalds committed Oct 4, 2006
1 parent d4f09ad commit 1c8510b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: c194588dba968510b5aa7a1818bd2c8b36a416f7
refs/heads/master: 4d5e392c33820dc8861423bb1b8dae205ea0ad3d
8 changes: 7 additions & 1 deletion trunk/drivers/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,14 @@ static void __init atmel_console_get_options(struct uart_port *port, int *baud,
else if (mr == ATMEL_US_PAR_ODD)
*parity = 'o';

/*
* The serial core only rounds down when matching this to a
* supported baud rate. Make sure we don't end up slightly
* lower than one of those, as it would make us fall through
* to a much lower baud rate than we really want.
*/
quot = UART_GET_BRGR(port);
*baud = port->uartclk / (16 * (quot));
*baud = port->uartclk / (16 * (quot - 1));
}

static int __init atmel_console_setup(struct console *co, char *options)
Expand Down

0 comments on commit 1c8510b

Please sign in to comment.