]> git.baikalelectronics.ru Git - kernel.git/commit
usb: langwell_udc: cancel pending requests when controller is suspended.
authorPhilippe Skowronski <philippe.skowronski@intel.com>
Fri, 1 Oct 2010 13:59:16 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:00 +0000 (10:22 -0700)
commitfc7b205c4b2e7c7348392e14b963411dfdbc6b0f
treec2890018e142e6f2f2da0dd73b6d21661b36ef1d
parentaea412c657e401e5b503910280acb9c0e58500e1
usb: langwell_udc: cancel pending requests when controller is suspended.

It is safer to cancel pending requests before free dTD and dQH when
controller enters suspend state.

Signed-off-by: Philippe Skowronski <philippe.skowronski@intel.com>
Signed-off-by: Hao Wu <hao.wu@intel.com>
[Switch to spin_lock_irq as suggested by Alan Stern]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/langwell_udc.c