serial: imx: preserve characters with parity or framing errors
authorEric Nelson <eric.nelson@boundarydevices.com>
Thu, 18 Dec 2014 19:37:13 +0000 (12:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:28:17 +0000 (14:28 -0800)
commit8d267fd98b7706a6296409b69bf2cca42087a9ef
tree052ff9687c1260e23fcd905678a8a1035df00b58
parentb820cd7643d5fdf05d6f5d32507d330609113248
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: 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