mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0e0b989eb3
commit
b810645473
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue