]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/uhci-hcd.c
[PATCH] USB: central handling for host controllers that were reset during suspend...
[~andy/linux] / drivers / usb / host / uhci-hcd.c
index 1c0394cb3c89214d6d6b099f0ffe1a467db15876..071fab6b6475091ad2cc205227dfe66c5e25049d 100644 (file)
@@ -748,8 +748,12 @@ static int uhci_resume(struct usb_hcd *hcd)
        check_and_reset_hc(uhci);
        configure_hc(uhci);
 
-       if (uhci->rh_state == UHCI_RH_RESET)
+       if (uhci->rh_state == UHCI_RH_RESET) {
+
+               /* The controller had to be reset */
+               usb_root_hub_lost_power(hcd->self.root_hub);
                suspend_rh(uhci, UHCI_RH_SUSPENDED);
+       }
 
        spin_unlock_irq(&uhci->lock);