Commit 38bd2a1a authored by Tomoya MORINAGA's avatar Tomoya MORINAGA Committed by Greg Kroah-Hartman

pch_uart: Fix parity setting issue

Parity Setting value is reverse.
E.G. In case of setting ODD parity, EVEN value is set.
This patch inverts "if" condition.
Signed-off-by: default avatarTomoya MORINAGA <tomoya.rohm@gmail.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9539dfb7
...@@ -1368,7 +1368,7 @@ static void pch_uart_set_termios(struct uart_port *port, ...@@ -1368,7 +1368,7 @@ static void pch_uart_set_termios(struct uart_port *port,
stb = PCH_UART_HAL_STB1; stb = PCH_UART_HAL_STB1;
if (termios->c_cflag & PARENB) { if (termios->c_cflag & PARENB) {
if (!(termios->c_cflag & PARODD)) if (termios->c_cflag & PARODD)
parity = PCH_UART_HAL_PARITY_ODD; parity = PCH_UART_HAL_PARITY_ODD;
else else
parity = PCH_UART_HAL_PARITY_EVEN; parity = PCH_UART_HAL_PARITY_EVEN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment