aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2014-12-18 14:37:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 17:28:18 -0500
commit865cea8589546025759689e034b950d1c59ed291 (patch)
tree1afdc6cbde0a2bde2450dd2c9deddf1b100556ab /drivers/tty
parent8d267fd98b7706a6296409b69bf2cca42087a9ef (diff)
serial: imx: ignore framing errors when IGNPAR is set.
When IGNPAR is set in termios->c_iflag, characters with framing errors should be ignored. Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> Reviewed-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 6ac22d75a4bb..59d9ef10b085 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -1410,7 +1410,7 @@ imx_set_termios(struct uart_port *port, struct ktermios *termios,
1410 */ 1410 */
1411 sport->port.ignore_status_mask = 0; 1411 sport->port.ignore_status_mask = 0;
1412 if (termios->c_iflag & IGNPAR) 1412 if (termios->c_iflag & IGNPAR)
1413 sport->port.ignore_status_mask |= URXD_PRERR; 1413 sport->port.ignore_status_mask |= URXD_PRERR | URXD_FRMERR;
1414 if (termios->c_iflag & IGNBRK) { 1414 if (termios->c_iflag & IGNBRK) {
1415 sport->port.ignore_status_mask |= URXD_BRK; 1415 sport->port.ignore_status_mask |= URXD_BRK;
1416 /* 1416 /*