Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fc39aeb authored by Tomoya MORINAGA's avatar Tomoya MORINAGA Committed by Greg Kroah-Hartman
Browse files

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 ae213f30
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;