summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Stern2006-11-14 22:28:01 +0100
committerGreg Kroah-Hartman2006-11-16 23:26:11 +0100
commit3da2495c0a92723d58cacaaff48dc60a29ddaae6 (patch)
tree15df1f341c3c6f4f11edbe79306936a95a9ce423
parentMerge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm (diff)
downloadkernel-qcow2-linux-3da2495c0a92723d58cacaaff48dc60a29ddaae6.tar.gz
kernel-qcow2-linux-3da2495c0a92723d58cacaaff48dc60a29ddaae6.tar.xz
kernel-qcow2-linux-3da2495c0a92723d58cacaaff48dc60a29ddaae6.zip
OHCI: disallow autostop when wakeup is not available
This patch (as822) prevents the OHCI autostop mechanism from kicking in if the root hub is not able or not allowed to issue wakeup requests. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/host/ohci-hub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 6f113596af66..da09e7930c1b 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -422,7 +422,8 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf)
ohci->autostop = 0;
ohci->next_statechange = jiffies +
STATECHANGE_DELAY;
- } else if (time_after_eq (jiffies,
+ } else if (device_may_wakeup(&hcd->self.root_hub->dev)
+ && time_after_eq(jiffies,
ohci->next_statechange)
&& !ohci->ed_rm_list
&& !(ohci->hc_control &