USB: ftdi_sio.c: Fill the RX field of the ftdi async_icount structure
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Mon, 10 Oct 2011 15:24:16 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 18 Oct 2011 20:46:29 +0000 (13:46 -0700)
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/usb/serial/ftdi_sio.c

index 4cfc4cd..cb0ecd5 100644 (file)
@@ -1984,6 +1984,7 @@ static int ftdi_process_packet(struct tty_struct *tty,
        len -= 2;
        if (!len)
                return 0;       /* status only */
+       priv->icount.rx += len;
        ch = packet + 2;
 
        if (port->port.console && port->sysrq) {