diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-05-05 20:32:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 17:32:22 -0700 |
commit | a37025b5c702aaf87191cd75fcc42c54454f16f5 (patch) | |
tree | a8a3c2fd4d441b7827a9912d56a15c3acaa7c105 /drivers/usb/serial/io_ti.c | |
parent | c4133648bbce9e6b425a74cc890c8e4df51acaa9 (diff) | |
download | linux-a37025b5c702aaf87191cd75fcc42c54454f16f5.tar.gz linux-a37025b5c702aaf87191cd75fcc42c54454f16f5.tar.bz2 linux-a37025b5c702aaf87191cd75fcc42c54454f16f5.zip |
USB: ftdi_sio: 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 6f602912 ("usb:
serial: ftdi_sio: Add missing chars_in_buffer function") without
breaking tty_wait_until_sent (used by, for example, tcdrain, tcsendbreak
and close).
Reported-by: Stas Sergeev <stsp@list.ru>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
0 files changed, 0 insertions, 0 deletions