Explorar o código

serial: sccnxp: Add IGNPAR flag handling

This patch add IGNPAR flag handling for the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Alexander Shiyan %!s(int64=11) %!d(string=hai) anos
pai
achega
2ce7c148c8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/tty/serial/sccnxp.c

+ 2 - 0
drivers/tty/serial/sccnxp.c

@@ -672,6 +672,8 @@ static void sccnxp_set_termios(struct uart_port *port,
 	port->ignore_status_mask = 0;
 	if (termios->c_iflag & IGNBRK)
 		port->ignore_status_mask |= SR_BRK;
+	if (termios->c_iflag & IGNPAR)
+		port->ignore_status_mask |= SR_PE;
 	if (!(termios->c_cflag & CREAD))
 		port->ignore_status_mask |= SR_PE | SR_OVR | SR_FE | SR_BRK;