diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:25:47 -0500 |
commit | 2bf2154c6bb5599e3ec3f73c34861a0b12aa839e (patch) | |
tree | 62691bd915e2e3c2e6648306d3fb893f7a1dc57e /drivers/usb/host/ehci-pci.c | |
parent | 08a4ecee986dd98e86090ff5faac4782b6765aed (diff) | |
parent | 71a8924bee63d891f6256d560e32416a458440b3 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (81 commits)
[PATCH] USB: omninet: fix up debugging comments
[PATCH] USB serial: add navman driver
[PATCH] USB: Fix irda-usb use after use
[PATCH] USB: rtl8150 small fix
[PATCH] USB: ftdi_sio: add Icom ID1 USB product and vendor ids
[PATCH] USB: cp2101: add new device IDs
[PATCH] USB: fix check_ctrlrecip to allow control transfers in state ADDRESS
[PATCH] USB: vicam.c: fix a NULL pointer dereference
[PATCH] USB: ZC0301 driver bugfix
[PATCH] USB: add support for Creativelabs Silvercrest USB keyboard
[PATCH] USB: storage: new unusual_devs.h entry: Mitsumi 7in1 Card Reader
[PATCH] USB: storage: unusual_devs.h entry 0420:0001
[PATCH] USB: storage: another unusual_devs.h entry
[PATCH] USB: storage: sandisk unusual_devices entry
[PATCH] USB: fix initdata issue in isp116x-hcd
[PATCH] USB: usbcore: usb_set_configuration oops (NULL ptr dereference)
[PATCH] USB: usbcore: Don't assume a USB configuration includes any interfaces
[PATCH] USB: ub 03 drop stall clearing
[PATCH] USB: ub 02 remove diag
[PATCH] USB: ub 01 remove first_open
...
Diffstat (limited to 'drivers/usb/host/ehci-pci.c')
-rw-r--r-- | drivers/usb/host/ehci-pci.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 3a6687df5594..1e03f1a5a5fd 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
@@ -106,11 +106,11 @@ static int ehci_pci_setup(struct usb_hcd *hcd) | |||
106 | } | 106 | } |
107 | break; | 107 | break; |
108 | case PCI_VENDOR_ID_NVIDIA: | 108 | case PCI_VENDOR_ID_NVIDIA: |
109 | switch (pdev->device) { | ||
109 | /* NVidia reports that certain chips don't handle | 110 | /* NVidia reports that certain chips don't handle |
110 | * QH, ITD, or SITD addresses above 2GB. (But TD, | 111 | * QH, ITD, or SITD addresses above 2GB. (But TD, |
111 | * data buffer, and periodic schedule are normal.) | 112 | * data buffer, and periodic schedule are normal.) |
112 | */ | 113 | */ |
113 | switch (pdev->device) { | ||
114 | case 0x003c: /* MCP04 */ | 114 | case 0x003c: /* MCP04 */ |
115 | case 0x005b: /* CK804 */ | 115 | case 0x005b: /* CK804 */ |
116 | case 0x00d8: /* CK8 */ | 116 | case 0x00d8: /* CK8 */ |
@@ -120,6 +120,14 @@ static int ehci_pci_setup(struct usb_hcd *hcd) | |||
120 | ehci_warn(ehci, "can't enable NVidia " | 120 | ehci_warn(ehci, "can't enable NVidia " |
121 | "workaround for >2GB RAM\n"); | 121 | "workaround for >2GB RAM\n"); |
122 | break; | 122 | break; |
123 | /* Some NForce2 chips have problems with selective suspend; | ||
124 | * fixed in newer silicon. | ||
125 | */ | ||
126 | case 0x0068: | ||
127 | pci_read_config_dword(pdev, PCI_REVISION_ID, &temp); | ||
128 | if ((temp & 0xff) < 0xa4) | ||
129 | ehci->no_selective_suspend = 1; | ||
130 | break; | ||
123 | } | 131 | } |
124 | break; | 132 | break; |
125 | } | 133 | } |
@@ -163,6 +171,21 @@ static int ehci_pci_setup(struct usb_hcd *hcd) | |||
163 | device_init_wakeup(&pdev->dev, 1); | 171 | device_init_wakeup(&pdev->dev, 1); |
164 | } | 172 | } |
165 | 173 | ||
174 | #ifdef CONFIG_USB_SUSPEND | ||
175 | /* REVISIT: the controller works fine for wakeup iff the root hub | ||
176 | * itself is "globally" suspended, but usbcore currently doesn't | ||
177 | * understand such things. | ||
178 | * | ||
179 | * System suspend currently expects to be able to suspend the entire | ||
180 | * device tree, device-at-a-time. If we failed selective suspend | ||
181 | * reports, system suspend would fail; so the root hub code must claim | ||
182 | * success. That's lying to usbcore, and it matters for for runtime | ||
183 | * PM scenarios with selective suspend and remote wakeup... | ||
184 | */ | ||
185 | if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) | ||
186 | ehci_warn(ehci, "selective suspend/wakeup unavailable\n"); | ||
187 | #endif | ||
188 | |||
166 | retval = ehci_pci_reinit(ehci, pdev); | 189 | retval = ehci_pci_reinit(ehci, pdev); |
167 | done: | 190 | done: |
168 | return retval; | 191 | return retval; |