From: Wolfgang Ocker Date: Wed, 16 Nov 2016 11:37:45 +0000 (+0100) Subject: mxs-auart: count FIFO overrun errors X-Git-Tag: v4.14-rc1~1920^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8106454733806b56c87493042da77b3b8b48d22;p=platform%2Fkernel%2Flinux-rpi.git mxs-auart: count FIFO overrun errors The mxs-auart driver does not count FIFO overrun errors. These errors never appear in /proc/tty/driver/ttyAPP. This is because the OERR status bit is masked by read_status_mask in the rx interrupt function, but the AUART_STAT_OERR bit is never set in read_status_mask. The patch enables the counting of overrun errors. Signed-off-by: Wolfgang Ocker Reviewed-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index 770454e..8c1c911 100644 --- a/drivers/tty/serial/mxs-auart.c +++ b/drivers/tty/serial/mxs-auart.c @@ -1016,7 +1016,7 @@ static void mxs_auart_settermios(struct uart_port *u, ctrl |= AUART_LINECTRL_EPS; } - u->read_status_mask = 0; + u->read_status_mask = AUART_STAT_OERR; if (termios->c_iflag & INPCK) u->read_status_mask |= AUART_STAT_PERR;