android_kernel_xiaomi_sm8350/drivers/usb/class
David Brownell e5fbab51b4 usb: cdc-acm: drain writes on close
Add a mechanism to let the write queue drain naturally before
closing the TTY, rather than always losing that data.  There
is a timeout, so it can't wait too long.

Provide missing locking inside acm_wb_is_avail(); it matters
more now.  Note, this presumes an earlier patch was applied,
removing a call to this routine where the lock was held.

Slightly improved diagnostics on write URB completion, so we
can tell when a write URB gets killed and, if so, how much
data it wrote first ... and so that I/O path is normally
silent (and can't much change timings).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-08-13 17:32:57 -07:00
..
cdc-acm.c usb: cdc-acm: drain writes on close 2008-08-13 17:32:57 -07:00
cdc-acm.h usb: cdc-acm: drain writes on close 2008-08-13 17:32:57 -07:00
cdc-wdm.c USB: fix build error in cdc-acm for CONFIG_PM=n 2008-07-21 15:16:47 -07:00
Kconfig USB: CDC WDM driver 2008-05-20 14:14:15 -07:00
Makefile USB: CDC WDM driver 2008-05-20 14:14:15 -07:00
usblp.c