]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/usb/host/ehci-hub.c
USB: ehci-dbgp,ehci: Allow dbpg to work with suspend/resume
[net-next-2.6.git] / drivers / usb / host / ehci-hub.c
index 6b5e4d18d4bf047acfbdbd06b5b306c49a13a2c2..1b6f1c0e5cee23c6c62f406c204a655d9b13fe67 100644 (file)
@@ -235,6 +235,13 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
                return -ESHUTDOWN;
        }
 
+       if (unlikely(ehci->debug)) {
+               if (ehci->debug && !dbgp_reset_prep())
+                       ehci->debug = NULL;
+               else
+                       dbgp_external_startup();
+       }
+
        /* Ideally and we've got a real resume here, and no port's power
         * was lost.  (For PCI, that means Vaux was maintained.)  But we
         * could instead be restoring a swsusp snapshot -- so that BIOS was