diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-05-24 12:50:27 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 12:41:58 -0700 |
commit | 2ce7c148c8ddef52f18896cd11459d0de8a25c3f (patch) | |
tree | f86b9f0beebc51ac4305b1da4ec82f604fda2452 /drivers/tty | |
parent | bee18bdc9c0f383428cbf8c955b7bb8e6cc0d090 (diff) |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index 3f5d40a060e..5443b46345e 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/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; |