Skip to content

Commit

Permalink
mxs-auart: count FIFO overrun errors
Browse files Browse the repository at this point in the history
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 <weo@reccoware.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wolfgang Ocker authored and Greg Kroah-Hartman committed Nov 16, 2016
1 parent 0e0b989 commit b810645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/mxs-auart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b810645

Please sign in to comment.