Commit 8d267fd9 authored by Eric Nelson's avatar Eric Nelson Committed by Greg Kroah-Hartman

serial: imx: preserve characters with parity or framing errors

If IGNPAR/INPCK are clear in termios->c_iflag,  characters
received with parity or framing errors should be preserved
and passed to the upper layers of the tty stack.

Specifically, the decision of whether to set the character
value to zero should be made by n_tty.c/n_tty_receive_parity_error().
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 b820cd76
......@@ -733,7 +733,7 @@ static irqreturn_t imx_rxint(int irq, void *dev_id)
continue;
}
rx &= sport->port.read_status_mask;
rx &= (sport->port.read_status_mask | 0xFF);
if (rx & URXD_BRK)
flg = TTY_BREAK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment