]> err.no Git - linux-2.6/commitdiff
Blackfin serial driver: ignore framing and parity errors
authorMike Frysinger <michael.frysinger@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
committerBryan Wu <bryan.wu@analog.com>
Mon, 11 Jun 2007 07:31:30 +0000 (15:31 +0800)
if we get a break signal, we want to ignore framing and parity errors
because those will always be set (by nature of the signal)

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
drivers/serial/bfin_5xx.c

index aeb3cc23a813c6be218eefc70944dc28888d35f7..9d356fc96a57896705a0495a430eb55994d60b18 100644 (file)
@@ -185,6 +185,7 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
                uart->port.icount.brk++;
                if (uart_handle_break(&uart->port))
                        goto ignore_char;
+               status &= ~(PE | FE);
        }
        if (status & PE)
                uart->port.icount.parity++;
@@ -341,6 +342,7 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart)
                uart->port.icount.brk++;
                if (uart_handle_break(&uart->port))
                        goto dma_ignore_char;
+               status &= ~(PE | FE);
        }
        if (status & PE)
                uart->port.icount.parity++;