From: Heiner Kallweit Date: Wed, 19 Apr 2017 20:17:24 +0000 (+0200) Subject: serial: meson: fix setting number of stop bits X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88f37d707132fa7854d337455e3290af1c8fae5d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 60f16795d16b..e2e25da10f19 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -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;