]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ti_usb_3410_5052: fix chars_in_buffer overhead
authorJohan Hovold <jhovold@gmail.com>
Sun, 5 May 2013 18:32:32 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:32:22 +0000 (17:32 -0700)
commitee6ccadef12203829e44f2219fbf4b93ed462846
tree57151bdd9f8a28509f2feac7ac3755833395c1e5
parent5e28d6d90f329b017b15f9c39b98496c76d8cd19
USB: ti_usb_3410_5052: fix chars_in_buffer overhead

Use the new generic usb-serial wait_until_sent implementation to wait
for hardware buffers to drain.

This removes the need to check the hardware buffers in chars_in_buffer
and thus removes the overhead introduced by commit 3a2fd7909 ("USB:
ti_usb_3410_5052: query hardware-buffer status in chars_in_buffer")
without breaking tty_wait_until_sent (used by, for example, tcdrain,
tcsendbreak and close).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ti_usb_3410_5052.c