mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
bee18bdc9c
commit
2ce7c148c8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue