serial: imx: ignore framing errors when IGNPAR is set.
authorEric Nelson <eric.nelson@boundarydevices.com>
Thu, 18 Dec 2014 19:37:14 +0000 (12:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:28:18 +0000 (14:28 -0800)
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>
drivers/tty/serial/imx.c

index 6ac22d75a4bbefcfad6cc3ba2d79dc0e88dab9c4..59d9ef10b085f9102c6a9152be7728b16fa72ff4 100644 (file)
@@ -1410,7 +1410,7 @@ imx_set_termios(struct uart_port *port, struct ktermios *termios,
         */
        sport->port.ignore_status_mask = 0;
        if (termios->c_iflag & IGNPAR)
-               sport->port.ignore_status_mask |= URXD_PRERR;
+               sport->port.ignore_status_mask |= URXD_PRERR | URXD_FRMERR;
        if (termios->c_iflag & IGNBRK) {
                sport->port.ignore_status_mask |= URXD_BRK;
                /*