diff options
author | Johan Hovold <johan@kernel.org> | 2021-04-12 11:38:12 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-04-13 18:19:28 +0200 |
commit | 8674cabe052b9ce23f72abb83058fc1d545e257a (patch) | |
tree | afe7deb357be32fdd9f3d8b878832e9fe19c6f12 /drivers | |
parent | USB: serial: cp210x: add gpio-configuration debug printk (diff) | |
download | linux-8674cabe052b9ce23f72abb83058fc1d545e257a.tar.xz linux-8674cabe052b9ce23f72abb83058fc1d545e257a.zip |
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: 98405f81036d ("USB: serial: f81232: add tx_empty function")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/f81232.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index b4b847dce4bc..a7a7af8d05bf 100644 --- a/drivers/usb/serial/f81232.c +++ b/drivers/usb/serial/f81232.c @@ -948,7 +948,6 @@ static int f81232_port_probe(struct usb_serial_port *port) usb_set_serial_port_data(port, priv); - port->port.drain_delay = 256; priv->port = port; return 0; |