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

USB: ftdi_sio.c: Fill LSR 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 da7fbb6d
...@@ -1954,6 +1954,14 @@ static int ftdi_process_packet(struct tty_struct *tty, ...@@ -1954,6 +1954,14 @@ static int ftdi_process_packet(struct tty_struct *tty,
N.B. packet may be processed more than once, but differences N.B. packet may be processed more than once, but differences
are only processed once. */ are only processed once. */
status = packet[0] & FTDI_STATUS_B0_MASK; status = packet[0] & FTDI_STATUS_B0_MASK;
if (status & FTDI_RS0_CTS)
priv->icount.cts++;
if (status & FTDI_RS0_DSR)
priv->icount.dsr++;
if (status & FTDI_RS0_RI)
priv->icount.rng++;
if (status & FTDI_RS0_RLSD)
priv->icount.dcd++;
if (status != priv->prev_status) { if (status != priv->prev_status) {
priv->diff_status |= status ^ priv->prev_status; priv->diff_status |= status ^ priv->prev_status;
wake_up_interruptible(&priv->delta_msr_wait); wake_up_interruptible(&priv->delta_msr_wait);
......
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