USB: io_ti: query hardware-buffer status in chars_in_buffer
commit263e1f9fbb999fb78df5bfed87ddbba1c12ee0f1
authorJohan Hovold <jhovold@gmail.com>
Mon, 14 Jan 2013 15:52:57 +0000 (14 16:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 23:45:17 +0000 (18 15:45 -0800)
tree07eccb56a78f378488625a69c7957b75e01e2f79
parent810360a03597afc0d43a45798a52cfb69b8453d3
USB: io_ti: query hardware-buffer status in chars_in_buffer

Query hardware-buffer status in chars_in_buffer should the write fifo be
empty.

This is needed to make the tty layer wait for hardware buffers to drain
on close.

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