Commit 005b3cde authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Greg Kroah-Hartman

USB: ftdi_sio.c:Fill MSR fields of the ftdi async_icount structure

Signed-off-by: default avatarUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ac295f39
...@@ -1974,15 +1974,20 @@ static int ftdi_process_packet(struct tty_struct *tty, ...@@ -1974,15 +1974,20 @@ static int ftdi_process_packet(struct tty_struct *tty,
* over framing errors */ * over framing errors */
if (packet[1] & FTDI_RS_BI) { if (packet[1] & FTDI_RS_BI) {
flag = TTY_BREAK; flag = TTY_BREAK;
priv->icount.brk++;
usb_serial_handle_break(port); usb_serial_handle_break(port);
} else if (packet[1] & FTDI_RS_PE) { } else if (packet[1] & FTDI_RS_PE) {
flag = TTY_PARITY; flag = TTY_PARITY;
priv->icount.parity++;
} else if (packet[1] & FTDI_RS_FE) { } else if (packet[1] & FTDI_RS_FE) {
flag = TTY_FRAME; flag = TTY_FRAME;
priv->icount.frame++;
} }
/* Overrun is special, not associated with a char */ /* Overrun is special, not associated with a char */
if (packet[1] & FTDI_RS_OE) if (packet[1] & FTDI_RS_OE) {
priv->icount.overrun++;
tty_insert_flip_char(tty, 0, TTY_OVERRUN); tty_insert_flip_char(tty, 0, TTY_OVERRUN);
}
} }
/* save if the transmitter is empty or not */ /* save if the transmitter is empty or not */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment