OSDN Git Service

USB: serial: ti_usb_3410_5052: reduce drain delay to one char
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:38:14 +0000 (11:38 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:19:33 +0000 (18:19 +0200)
commitc505b8b2ef274ce60a79f18a33bf23efd17a04de
treecac29ce2bdf4f21e125b1363d4fdfb5cbc4b3745
parent4b8e07951ff53e702bd5d6d21450b17152d124d7
USB: serial: ti_usb_3410_5052: reduce drain delay to one char

The three-character drain delay was added by commit f1175daa5312 ("USB:
ti_usb_3410_5052: kill custom closing_wait") when removing the custom
closing-wait implementation, which used a fixed 20 ms poll period and
drain delay.

This was likely a bit too conservative as a one-character timeout (e.g.
33 ms at 300 bps) should be enough to compensate for the lack of a
transmitter empty bit in the TUSB5052 line-status register.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ti_usb_3410_5052.c