mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
serial: meson: fix setting number of stop bits
The stop bit value as to be or'ed, so far this worked only just by chance because AML_UART_STOP_BIN_1SB is 0. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7b6d539944
commit
88f37d7071
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ static void meson_uart_set_termios(struct uart_port *port,
|
|||
if (cflags & CSTOPB)
|
||||
val |= AML_UART_STOP_BIN_2SB;
|
||||
else
|
||||
val &= ~AML_UART_STOP_BIN_1SB;
|
||||
val |= AML_UART_STOP_BIN_1SB;
|
||||
|
||||
if (cflags & CRTSCTS)
|
||||
val &= ~AML_UART_TWO_WIRE_EN;
|
||||
|
|
Loading…
Reference in a new issue