wusb: reset WUSB devices with SetAddress(0)
authorDavid Vrabel <david.vrabel@csr.com>
Mon, 27 Oct 2008 17:12:33 +0000 (17:12 +0000)
committerDavid Vrabel <david.vrabel@csr.com>
Tue, 28 Oct 2008 12:10:25 +0000 (12:10 +0000)
commit4656d5de9555e263c5b4c0462b5af7e7bded1b42
treec8406b562bd8f7796da869ce152c7d75480e2dda
parent1cde7f68ced8d10a20dd2370e9d1d22ab3c1ea5c
wusb: reset WUSB devices with SetAddress(0)

Using a Reset Device IE to reset a WUSB device is too heavyweight as it
causes the devcie to disconnect (which the USB stack does not expect and
cannot handle).  Instead, do a SetAddress(0); SetAddress(AuthAddr) for
authenticated devices.

Unauthenticated devices will not be reset and the stack will have to rely
on the device timing out after TrustTimeout and disconnecting.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/rh.c
drivers/usb/wusbcore/security.c
drivers/usb/wusbcore/wusbhc.h