]> git.baikalelectronics.ru Git - kernel.git/commit
tty: USB tty devices can block in tcdrain when unplugged
authorAlan Cox <alan@redhat.com>
Fri, 2 Jan 2009 13:47:06 +0000 (13:47 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:40 +0000 (10:19 -0800)
commit4c64c2b7156ee6f2b899025e979151616f9c9de6
treebc3d6be6f85a61d27af3f86eb0e8b65b9f83f059
parent3a8f2bf7224a0f7d09cca2f0b33054285f6fc36d
tty: USB tty devices can block in tcdrain when unplugged

The underlying problem is that the device methods don't all correctly
handle disconnected status and some keep reporting bytes pending which
causes tcdrain to stall.

When the cable is unplugged they are definitely gone, and as this is true
for all USB cables we can fix it in the core usb serial code.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/usb-serial.c