OSDN Git Service

USB: io_ti: fix chars_in_buffer overhead
authorJohan Hovold <jhovold@gmail.com>
Sun, 5 May 2013 18:32:31 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:32:22 +0000 (17:32 -0700)
commitb16634adce951a7371be931487034f7365971ed0
tree8d7242002e36c347c5d2a4ce7154aacfeca73633
parenta37025b5c702aaf87191cd75fcc42c54454f16f5
USB: io_ti: 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 263e1f9f ("USB:
io_ti: 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/io_ti.c