|
@@ -795,7 +795,6 @@ static int ohci_restart (struct ohci_hcd *ohci)
|
|
|
int temp;
|
|
int temp;
|
|
|
int i;
|
|
int i;
|
|
|
struct urb_priv *priv;
|
|
struct urb_priv *priv;
|
|
|
- struct usb_device *root = ohci_to_hcd(ohci)->self.root_hub;
|
|
|
|
|
|
|
|
|
|
/* mark any devices gone, so they do nothing till khubd disconnects.
|
|
/* mark any devices gone, so they do nothing till khubd disconnects.
|
|
|
* recycle any "live" eds/tds (and urbs) right away.
|
|
* recycle any "live" eds/tds (and urbs) right away.
|
|
@@ -804,11 +803,7 @@ static int ohci_restart (struct ohci_hcd *ohci)
|
|
|
*/
|
|
*/
|
|
|
spin_lock_irq(&ohci->lock);
|
|
spin_lock_irq(&ohci->lock);
|
|
|
disable (ohci);
|
|
disable (ohci);
|
|
|
- for (i = 0; i < root->maxchild; i++) {
|
|
|
|
|
- if (root->children [i])
|
|
|
|
|
- usb_set_device_state (root->children[i],
|
|
|
|
|
- USB_STATE_NOTATTACHED);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ usb_root_hub_lost_power(ohci_to_hcd(ohci)->self.root_hub);
|
|
|
if (!list_empty (&ohci->pending))
|
|
if (!list_empty (&ohci->pending))
|
|
|
ohci_dbg(ohci, "abort schedule...\n");
|
|
ohci_dbg(ohci, "abort schedule...\n");
|
|
|
list_for_each_entry (priv, &ohci->pending, pending) {
|
|
list_for_each_entry (priv, &ohci->pending, pending) {
|