Commit 8674cabe authored by Johan Hovold's avatar Johan Hovold

USB: serial: f81232: drop time-based drain delay

The f81232 driver now waits for the transmit FIFO to drain during close
so there is no need to keep the time-based drain delay, which would add
up to two seconds on every close for low line speeds.

Fixes: 98405f81 ("USB: serial: f81232: add tx_empty function")
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent d0708227
...@@ -948,7 +948,6 @@ static int f81232_port_probe(struct usb_serial_port *port) ...@@ -948,7 +948,6 @@ static int f81232_port_probe(struct usb_serial_port *port)
usb_set_serial_port_data(port, priv); usb_set_serial_port_data(port, priv);
port->port.drain_delay = 256;
priv->port = port; priv->port = port;
return 0; return 0;
......
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