diff options
author | Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> | 2011-10-10 11:24:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-18 16:46:30 -0400 |
commit | ac295f39249896f100ab1c49e2cbc269d176bf48 (patch) | |
tree | b3be61f20063f9c20048d446dd81dcb66a6d2a5c /drivers/usb/serial | |
parent | da7fbb6dd061fc4e2945d63cf04f843063dd51e5 (diff) |
USB: ftdi_sio.c: Fill LSR 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')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index a865df81a551..372ae5baa632 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -1954,6 +1954,14 @@ static int ftdi_process_packet(struct tty_struct *tty, | |||
1954 | N.B. packet may be processed more than once, but differences | 1954 | N.B. packet may be processed more than once, but differences |
1955 | are only processed once. */ | 1955 | are only processed once. */ |
1956 | status = packet[0] & FTDI_STATUS_B0_MASK; | 1956 | status = packet[0] & FTDI_STATUS_B0_MASK; |
1957 | if (status & FTDI_RS0_CTS) | ||
1958 | priv->icount.cts++; | ||
1959 | if (status & FTDI_RS0_DSR) | ||
1960 | priv->icount.dsr++; | ||
1961 | if (status & FTDI_RS0_RI) | ||
1962 | priv->icount.rng++; | ||
1963 | if (status & FTDI_RS0_RLSD) | ||
1964 | priv->icount.dcd++; | ||
1957 | if (status != priv->prev_status) { | 1965 | if (status != priv->prev_status) { |
1958 | priv->diff_status |= status ^ priv->prev_status; | 1966 | priv->diff_status |= status ^ priv->prev_status; |
1959 | wake_up_interruptible(&priv->delta_msr_wait); | 1967 | wake_up_interruptible(&priv->delta_msr_wait); |