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

USB: ftdi_sio.c:Fill TX field 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 c9222ec9
......@@ -1918,6 +1918,7 @@ static int ftdi_prepare_write_buffer(struct usb_serial_port *port,
c = kfifo_out(&port->write_fifo, &buffer[i + 1], len);
if (!c)
break;
priv->icount.tx += c;
buffer[i] = (c << 2) + 1;
count += c + 1;
}
......@@ -1925,6 +1926,7 @@ static int ftdi_prepare_write_buffer(struct usb_serial_port *port,
} else {
count = kfifo_out_locked(&port->write_fifo, dest, size,
&port->lock);
priv->icount.tx += count;
}
return count;
......
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