aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-04-14 12:17:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 00:16:53 -0400
commit5f47493cdf90b8afe5353e59de30e449e775ea8b (patch)
treeb5c6ad08973d3dee7f360a0090ed515858cb9c6d /drivers/usb/host
parent58a97ffeb2297f154659f339d77eb3f32c4d8b3e (diff)
USB: OHCI: turn off RD when remote wakeup is disabled
This patch (as1068b) disables the RD interrupt flag when an OHCI root hub is suspended with remote wakeup disabled. Although the spec clearly states that this flag permits the controller to issue an interrupt when a resume request from downstream is detected and not when a local status change occurs, some controllers mistakenly use it for both types of event. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-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 cf3e1d255639..355a82f25274 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -106,7 +106,8 @@ __acquires(ohci->lock)
106 if (ohci_to_hcd(ohci)->self.root_hub->do_remote_wakeup || autostop) { 106 if (ohci_to_hcd(ohci)->self.root_hub->do_remote_wakeup || autostop) {
107 ohci->hc_control |= OHCI_CTRL_RWE; 107 ohci->hc_control |= OHCI_CTRL_RWE;
108 } else { 108 } else {
109 ohci_writel (ohci, OHCI_INTR_RHSC, &ohci->regs->intrdisable); 109 ohci_writel(ohci, OHCI_INTR_RHSC | OHCI_INTR_RD,
110 &ohci->regs->intrdisable);
110 ohci->hc_control &= ~OHCI_CTRL_RWE; 111 ohci->hc_control &= ~OHCI_CTRL_RWE;
111 } 112 }
112 113