Searched hist:"6 f923a0134d9868a71db19cca1fae551a27b46f5" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | cp210x.c | diff 6f923a0134d9868a71db19cca1fae551a27b46f5 Tue Nov 24 23:28:41 CET 2015 Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com> 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>
|