summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/meson_uart.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-04-19 23:17:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-18 17:34:56 +0300
commit88f37d707132fa7854d337455e3290af1c8fae5d (patch)
tree13278bc4e5b2d274a75e5dea01feff63fc77b2f5 /drivers/tty/serial/meson_uart.c
parent7b6d53994470bfe24aad0c29d8fb289745a895c7 (diff)
downloadlinux-88f37d707132fa7854d337455e3290af1c8fae5d.tar.xz
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>
Diffstat (limited to 'drivers/tty/serial/meson_uart.c')
-rw-r--r--drivers/tty/serial/meson_uart.c2
1 files changed, 1 insertions, 1 deletions
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;