Commit 4b8e0795 authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: io_ti: document reason for drain delay



Document that the device line-status register doesn't tell when the
transmitter shift register has emptied and that this is why the
one-character drain delay is needed.

Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 8674cabe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2590,6 +2590,10 @@ static int edge_port_probe(struct usb_serial_port *port)
	if (ret)
		goto err;

	/*
	 * The LSR does not tell when the transmitter shift register has
	 * emptied so add a one-character drain delay.
	 */
	port->port.drain_delay = 1;

	return 0;