]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cp210x: add tx_empty()
authorKonstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
Tue, 24 Nov 2015 22:28:41 +0000 (16:28 -0600)
committerJohan Hovold <johan@kernel.org>
Thu, 26 Nov 2015 08:10:51 +0000 (09:10 +0100)
commit51ce170c1d18aa2174450263f643d0031144606d
tree75bfe155d9768c85af3662a27b8d40bacbdcdd01
parentbe93f03d459d2e65c373759ca60ffb8eda304844
USB: cp210x: add tx_empty()

Added tx_empty callback needed for generic wait-until-sent support.
Without this function, when the port is closed usbserial can't know that
there are still data in the chip's transmit FIFO. The chip gets disabled
and untransmitted data lost. When the actual byte count is reported by
tx-empty the close can be delayed until all data are sent.

Signed-off-by: Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
[johan: modify tx_empty error handling ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c