]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
UHCI: support device_may_wakeup
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 15 Dec 2006 21:08:13 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Jan 2007 20:19:08 +0000 (12:19 -0800)
This patch (as831) adds device_may_wakeup() support to uhci-hcd; it
has been lacking for a long time.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/uhci-hcd.c

index fecc8c971c17ac1751e28d513a6183f4dc58dcc3..e0d4c2358b39653dc52fb06fde98e12d312a1775 100644 (file)
@@ -257,7 +257,9 @@ __acquires(uhci->lock)
        int_enable = USBINTR_RESUME;
        if (remote_wakeup_is_broken(uhci))
                egsm_enable = 0;
-       if (resume_detect_interrupts_are_broken(uhci) || !egsm_enable)
+       if (resume_detect_interrupts_are_broken(uhci) || !egsm_enable ||
+                       !device_may_wakeup(
+                               &uhci_to_hcd(uhci)->self.root_hub->dev))
                uhci->working_RD = int_enable = 0;
 
        outw(int_enable, uhci->io_addr + USBINTR);