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 4cfc4cd4aae37cc0342877df293cca5125019282..cb0ecd5b2e4bad4c8ad603fe3d6b56b485cb47b0 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) {