]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdc-wdm: make reset work with blocking IO
authorBjørn Mork <bjorn@mork.no>
Fri, 10 Feb 2012 08:44:08 +0000 (09:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2012 19:28:18 +0000 (11:28 -0800)
commit779727c841ac85b986360dbd0040baea541e930a
tree88b8fa746469f5f3161941fa4d35a0e0336b229c
parent5281309c5abcf859a4fd087e51560a1d33533ca9
usb: cdc-wdm: make reset work with blocking IO

Add a flag to tell wdm_read/wdm_write that a reset is in progress,
and wake any blocking read/write before taking the mutexes.  This
allows the device to reset without waiting for blocking IO to
finish.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c