diff options
author | David Brownell <david-b@pacbell.net> | 2006-08-04 14:31:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:48 -0400 |
commit | d413984ae936fad46678403b38d79c595e5aaafe (patch) | |
tree | f494a450d7289d941e3ca2b2e33bfacc29cac024 /drivers/usb/host/ohci-pci.c | |
parent | 06afff00bcab0e384afbef70194fd3469532abdf (diff) |
USB: OHCI avoids root hub timer polling
This teaches OHCI to use the root hub status change (RHSC) IRQ, bypassing
root hub timers most of the time and switching over to the "new" root hub
polling scheme. It's complicated by the fact that implementations of OHCI
trigger and ack that IRQ differently (the spec is vague there).
Avoiding root hub timers helps mechanisms like "dynamic tick" leave the
CPU in lowpower modes for longer intervals.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-pci.c')
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 37e122812b67..ef874443aa9f 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -176,11 +176,13 @@ static const struct hc_driver ohci_pci_hc_driver = { | |||
176 | */ | 176 | */ |
177 | .reset = ohci_pci_reset, | 177 | .reset = ohci_pci_reset, |
178 | .start = ohci_pci_start, | 178 | .start = ohci_pci_start, |
179 | .stop = ohci_stop, | ||
180 | |||
179 | #ifdef CONFIG_PM | 181 | #ifdef CONFIG_PM |
182 | /* these suspend/resume entries are for upstream PCI glue ONLY */ | ||
180 | .suspend = ohci_pci_suspend, | 183 | .suspend = ohci_pci_suspend, |
181 | .resume = ohci_pci_resume, | 184 | .resume = ohci_pci_resume, |
182 | #endif | 185 | #endif |
183 | .stop = ohci_stop, | ||
184 | 186 | ||
185 | /* | 187 | /* |
186 | * managing i/o requests and associated device resources | 188 | * managing i/o requests and associated device resources |
@@ -199,6 +201,7 @@ static const struct hc_driver ohci_pci_hc_driver = { | |||
199 | */ | 201 | */ |
200 | .hub_status_data = ohci_hub_status_data, | 202 | .hub_status_data = ohci_hub_status_data, |
201 | .hub_control = ohci_hub_control, | 203 | .hub_control = ohci_hub_control, |
204 | .hub_irq_enable = ohci_rhsc_enable, | ||
202 | #ifdef CONFIG_PM | 205 | #ifdef CONFIG_PM |
203 | .bus_suspend = ohci_bus_suspend, | 206 | .bus_suspend = ohci_bus_suspend, |
204 | .bus_resume = ohci_bus_resume, | 207 | .bus_resume = ohci_bus_resume, |