From: Tomoya MORINAGA Date: Fri, 6 Jul 2012 08:19:43 +0000 (+0900) Subject: pch_uart: Fix parity setting issue X-Git-Tag: v3.2.27~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dbf6df1f6b4c2057a0e07b8a0f9c8f041b96f2d0;p=karo-tx-linux.git pch_uart: Fix parity setting issue commit 38bd2a1ac736901d1cf4971c78ef952ba92ef78b upstream. 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: Tomoya MORINAGA Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 82f576048972..08b92a6652f3 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c @@ -1265,7 +1265,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;