mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
pch_uart: Fix parity setting issue
commit 38bd2a1ac7 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 <tomoya.rohm@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4b14f6f47a
commit
b960ba5259
|
|
@ -1263,7 +1263,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user