mxs-auart: count FIFO overrun errors
Subsystems (2)
PATCH 1/1 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.
---
?drivers/tty/serial/mxs-auart.c | 2 +-
?1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/mxs-auart.c +0 -0
@@ -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;
--?
2.10.0
Greg Kroah-Hartman
maintainerQuoted 21 lines · Wolfgang Ocker
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 byread_status_maskin the rx interrupt function, but theAUART_STAT_OERRbit is never set inread_status_mask. The patch enables the counting of overrun errors.Signed-off-by Wolfgang Ocker <[email protected]>---
drivers/tty/serial/mxs-auart.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/tty/serial/mxs-auart.c +0
-0@@ -1016,7 +1016,7 @@ static void mxs_auart_settermios(struct uart_port *u, ctrl |= AUART_LINECTRL_EPS; }drivers/tty/serial/mxs-auart.c +1
-1- u->read_status_mask =0 ; + u->read_status_mask =AUART_STAT_OERR ;
Quoted 5 lines
if (termios->c_iflag& INPCK)u->read_status_mask|=AUART_STAT_PERR; --
2.10.0
This patch is corrupted and can not be applied, what did you do here?
Please fix up and resend.
thanks,
greg k-h