mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 14:34:28 +08:00
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
8674cabe05
commit
4b8e07951f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user