mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08: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
@ -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 New Issue
Block a user