aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>2011-10-10 11:24:46 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-18 16:46:30 -0400
commit005b3cded789c2358b71cb7d2d410ad0df00e366 (patch)
tree8a7d666aeaa4dded996f698e4f53f189b616c8df /drivers/usb/serial/ftdi_sio.c
parentac295f39249896f100ab1c49e2cbc269d176bf48 (diff)
USB: ftdi_sio.c:Fill MSR fields of the ftdi async_icount structure
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r--drivers/usb/serial/ftdi_sio.c7
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 */