diff options
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 372ae5baa632..9699580331a1 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -1974,15 +1974,20 @@ static int ftdi_process_packet(struct tty_struct *tty, | |||
1974 | * over framing errors */ | 1974 | * over framing errors */ |
1975 | if (packet[1] & FTDI_RS_BI) { | 1975 | if (packet[1] & FTDI_RS_BI) { |
1976 | flag = TTY_BREAK; | 1976 | flag = TTY_BREAK; |
1977 | priv->icount.brk++; | ||
1977 | usb_serial_handle_break(port); | 1978 | usb_serial_handle_break(port); |
1978 | } else if (packet[1] & FTDI_RS_PE) { | 1979 | } else if (packet[1] & FTDI_RS_PE) { |
1979 | flag = TTY_PARITY; | 1980 | flag = TTY_PARITY; |
1981 | priv->icount.parity++; | ||
1980 | } else if (packet[1] & FTDI_RS_FE) { | 1982 | } else if (packet[1] & FTDI_RS_FE) { |
1981 | flag = TTY_FRAME; | 1983 | flag = TTY_FRAME; |
1984 | priv->icount.frame++; | ||
1982 | } | 1985 | } |
1983 | /* Overrun is special, not associated with a char */ | 1986 | /* Overrun is special, not associated with a char */ |
1984 | if (packet[1] & FTDI_RS_OE) | 1987 | if (packet[1] & FTDI_RS_OE) { |
1988 | priv->icount.overrun++; | ||
1985 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); | 1989 | tty_insert_flip_char(tty, 0, TTY_OVERRUN); |
1990 | } | ||
1986 | } | 1991 | } |
1987 | 1992 | ||
1988 | /* save if the transmitter is empty or not */ | 1993 | /* save if the transmitter is empty or not */ |