--- drivers/serial/mpc52xx_uart.c 2008-08-07 15:55:43.000000000 +0200 +++ drivers/serial/mpc52xx_uart_orig.c 2008-09-11 13:19:12.000000000 +0200 @@ -752,10 +752,17 @@ if (status & MPC52xx_PSC_SR_RB) { flag = TTY_BREAK; uart_handle_break(port); + port->icount.brk++; } else if (status & MPC52xx_PSC_SR_PE) + { flag = TTY_PARITY; + port->icount.parity++; + } else if (status & MPC52xx_PSC_SR_FE) + { flag = TTY_FRAME; + port->icount.frame++; + } /* Clear error condition */ out_8(&PSC(port)->command, MPC52xx_PSC_RST_ERR_STAT); @@ -769,6 +776,7 @@ * affect the current character */ tty_insert_flip_char(tty, 0, TTY_OVERRUN); + port->icount.overrun++; } }