|
@@ -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;
|