|
@@ -319,16 +319,16 @@ static char tegra_uart_decode_rx_error(struct tegra_uart_port *tup,
|
|
if (unlikely(lsr & TEGRA_UART_LSR_ANY)) {
|
|
if (unlikely(lsr & TEGRA_UART_LSR_ANY)) {
|
|
if (lsr & UART_LSR_OE) {
|
|
if (lsr & UART_LSR_OE) {
|
|
/* Overrrun error */
|
|
/* Overrrun error */
|
|
- flag |= TTY_OVERRUN;
|
|
|
|
|
|
+ flag = TTY_OVERRUN;
|
|
tup->uport.icount.overrun++;
|
|
tup->uport.icount.overrun++;
|
|
dev_err(tup->uport.dev, "Got overrun errors\n");
|
|
dev_err(tup->uport.dev, "Got overrun errors\n");
|
|
} else if (lsr & UART_LSR_PE) {
|
|
} else if (lsr & UART_LSR_PE) {
|
|
/* Parity error */
|
|
/* Parity error */
|
|
- flag |= TTY_PARITY;
|
|
|
|
|
|
+ flag = TTY_PARITY;
|
|
tup->uport.icount.parity++;
|
|
tup->uport.icount.parity++;
|
|
dev_err(tup->uport.dev, "Got Parity errors\n");
|
|
dev_err(tup->uport.dev, "Got Parity errors\n");
|
|
} else if (lsr & UART_LSR_FE) {
|
|
} else if (lsr & UART_LSR_FE) {
|
|
- flag |= TTY_FRAME;
|
|
|
|
|
|
+ flag = TTY_FRAME;
|
|
tup->uport.icount.frame++;
|
|
tup->uport.icount.frame++;
|
|
dev_err(tup->uport.dev, "Got frame errors\n");
|
|
dev_err(tup->uport.dev, "Got frame errors\n");
|
|
} else if (lsr & UART_LSR_BI) {
|
|
} else if (lsr & UART_LSR_BI) {
|