projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branches 'asoc/topic/nau8810', 'asoc/topic/of-bool', 'asoc...
[cascardo/linux.git]
/
drivers
/
tty
/
serial
/
8250
/
8250_mid.c
diff --git
a/drivers/tty/serial/8250/8250_mid.c
b/drivers/tty/serial/8250/8250_mid.c
index
339de9c
..
20c5db2
100644
(file)
--- a/
drivers/tty/serial/8250/8250_mid.c
+++ b/
drivers/tty/serial/8250/8250_mid.c
@@
-168,6
+168,9
@@
static void mid8250_set_termios(struct uart_port *p,
unsigned long w = BIT(24) - 1;
unsigned long mul, div;
unsigned long w = BIT(24) - 1;
unsigned long mul, div;
+ /* Gracefully handle the B0 case: fall back to B9600 */
+ fuart = fuart ? fuart : 9600 * 16;
+
if (mid->board->freq < fuart) {
/* Find prescaler value that satisfies Fuart < Fref */
if (mid->board->freq > baud)
if (mid->board->freq < fuart) {
/* Find prescaler value that satisfies Fuart < Fref */
if (mid->board->freq > baud)