Skip to content

Commit

Permalink
USB: ftdi_sio.c:Fill MSR fields of the ftdi async_icount structure
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Uwe Bonnes authored and Greg Kroah-Hartman committed Oct 18, 2011
1 parent ac295f3 commit 005b3cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,15 +1974,20 @@ static int ftdi_process_packet(struct tty_struct *tty,
* over framing errors */
if (packet[1] & FTDI_RS_BI) {
flag = TTY_BREAK;
priv->icount.brk++;
usb_serial_handle_break(port);
} else if (packet[1] & FTDI_RS_PE) {
flag = TTY_PARITY;
priv->icount.parity++;
} else if (packet[1] & FTDI_RS_FE) {
flag = TTY_FRAME;
priv->icount.frame++;
}
/* 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);
}
}

/* save if the transmitter is empty or not */
Expand Down

0 comments on commit 005b3cd

Please sign in to comment.