wusb: whci-hcd shouldn't do ASL/PZL updates while channel is inactive
authorDavid Vrabel <david.vrabel@csr.com>
Tue, 25 Nov 2008 14:23:40 +0000 (14:23 +0000)
committerDavid Vrabel <david.vrabel@csr.com>
Tue, 25 Nov 2008 14:23:40 +0000 (14:23 +0000)
commit56968d0c1a920eb165c06318f5c458724e1df0af
tree9516fdc8ef8bc67bf6a51a1e4940d3ae59008dfa
parent65d76f368295973a35d195c9b13053502a67b6bc
wusb: whci-hcd shouldn't do ASL/PZL updates while channel is inactive

ASL/PZL updates while the WUSB channel is inactive (i.e., the PZL and
ASL are stopped) may not complete.  This causes hangs when removing the
whci-hcd module if a device is still connected (removing the device
does an endpoint_disable which results in an ASL update to remove the
qset).

If the WUSB channel is inactive the update can simply be skipped as the
WHC doesn't care about the state of the ASL/PZL.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/usb/host/whci/asl.c
drivers/usb/host/whci/pzl.c
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/mmc.c