|
@@ -2228,7 +2228,9 @@ serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
|
|
}
|
|
}
|
|
serial8250_set_mctrl(&up->port, up->port.mctrl);
|
|
serial8250_set_mctrl(&up->port, up->port.mctrl);
|
|
spin_unlock_irqrestore(&up->port.lock, flags);
|
|
spin_unlock_irqrestore(&up->port.lock, flags);
|
|
- tty_termios_encode_baud_rate(termios, baud, baud);
|
|
|
|
|
|
+ /* Don't rewrite B0 */
|
|
|
|
+ if (tty_termios_baud_rate(termios))
|
|
|
|
+ tty_termios_encode_baud_rate(termios, baud, baud);
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|