mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 11:55:53 +00:00
USB: ftdi_sio.c:Fill TX field 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>
This commit is contained in:
parent
c9222ec92e
commit
da7fbb6dd0
@ -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);
|
c = kfifo_out(&port->write_fifo, &buffer[i + 1], len);
|
||||||
if (!c)
|
if (!c)
|
||||||
break;
|
break;
|
||||||
|
priv->icount.tx += c;
|
||||||
buffer[i] = (c << 2) + 1;
|
buffer[i] = (c << 2) + 1;
|
||||||
count += c + 1;
|
count += c + 1;
|
||||||
}
|
}
|
||||||
@ -1925,6 +1926,7 @@ static int ftdi_prepare_write_buffer(struct usb_serial_port *port,
|
|||||||
} else {
|
} else {
|
||||||
count = kfifo_out_locked(&port->write_fifo, dest, size,
|
count = kfifo_out_locked(&port->write_fifo, dest, size,
|
||||||
&port->lock);
|
&port->lock);
|
||||||
|
priv->icount.tx += count;
|
||||||
}
|
}
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
|
Loading…
Reference in New Issue
Block a user