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)
commit6f923a0134d9868a71db19cca1fae551a27b46f5
tree75bfe155d9768c85af3662a27b8d40bacbdcdd01
parentd0bf1ff0ae322aca59b00b9a2ad121d35a77e78f
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
This page took 0.024712 seconds and 5 git commands to generate.