Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 865cea85 authored by Eric Nelson's avatar Eric Nelson Committed by Greg Kroah-Hartman
Browse files

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: default avatarEric Nelson <eric.nelson@boundarydevices.com>
Reviewed-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d267fd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		/*