projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pch_uart: Fix parity setting issue
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
tty
/
serial
/
pch_uart.c
diff --git
a/drivers/tty/serial/pch_uart.c
b/drivers/tty/serial/pch_uart.c
index 2cc9b4694625e4a0f6d9a81310c5a86bb84a0e27..558ce8509a9add9dac313e4c74704c824445e080 100644
(file)
--- a/
drivers/tty/serial/pch_uart.c
+++ b/
drivers/tty/serial/pch_uart.c
@@
-1368,7
+1368,7
@@
static void pch_uart_set_termios(struct uart_port *port,
stb = PCH_UART_HAL_STB1;
if (termios->c_cflag & PARENB) {
- if (
!(termios->c_cflag & PARODD)
)
+ if (
termios->c_cflag & PARODD
)
parity = PCH_UART_HAL_PARITY_ODD;
else
parity = PCH_UART_HAL_PARITY_EVEN;