|
@@ -1140,13 +1140,6 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0)
|
|
|
{
|
|
|
int i;
|
|
|
|
|
|
- dev_dbg(&dev->dev, "%s nuking %s URBs\n", __func__,
|
|
|
- skip_ep0 ? "non-ep0" : "all");
|
|
|
- for (i = skip_ep0; i < 16; ++i) {
|
|
|
- usb_disable_endpoint(dev, i, true);
|
|
|
- usb_disable_endpoint(dev, i + USB_DIR_IN, true);
|
|
|
- }
|
|
|
-
|
|
|
/* getting rid of interfaces will disconnect
|
|
|
* any drivers bound to them (a key side effect)
|
|
|
*/
|
|
@@ -1176,6 +1169,13 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0)
|
|
|
if (dev->state == USB_STATE_CONFIGURED)
|
|
|
usb_set_device_state(dev, USB_STATE_ADDRESS);
|
|
|
}
|
|
|
+
|
|
|
+ dev_dbg(&dev->dev, "%s nuking %s URBs\n", __func__,
|
|
|
+ skip_ep0 ? "non-ep0" : "all");
|
|
|
+ for (i = skip_ep0; i < 16; ++i) {
|
|
|
+ usb_disable_endpoint(dev, i, true);
|
|
|
+ usb_disable_endpoint(dev, i + USB_DIR_IN, true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|