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/ohci-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/ohci-pci.c')
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 1b09dde068e1..1bfe96f4d045 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -35,7 +35,10 @@ ohci_pci_start (struct usb_hcd *hcd) | |||
35 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); | 35 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); |
36 | int ret; | 36 | int ret; |
37 | 37 | ||
38 | if(hcd->self.controller && hcd->self.controller->bus == &pci_bus_type) { | 38 | /* REVISIT this whole block should move to reset(), which handles |
39 | * all the other one-time init. | ||
40 | */ | ||
41 | if (hcd->self.controller) { | ||
39 | struct pci_dev *pdev = to_pci_dev(hcd->self.controller); | 42 | struct pci_dev *pdev = to_pci_dev(hcd->self.controller); |
40 | 43 | ||
41 | /* AMD 756, for most chips (early revs), corrupts register | 44 | /* AMD 756, for most chips (early revs), corrupts register |
@@ -45,7 +48,8 @@ ohci_pci_start (struct usb_hcd *hcd) | |||
45 | && pdev->device == 0x740c) { | 48 | && pdev->device == 0x740c) { |
46 | ohci->flags = OHCI_QUIRK_AMD756; | 49 | ohci->flags = OHCI_QUIRK_AMD756; |
47 | ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); | 50 | ohci_dbg (ohci, "AMD756 erratum 4 workaround\n"); |
48 | // also somewhat erratum 10 (suspend/resume issues) | 51 | /* also erratum 10 (suspend/resume issues) */ |
52 | device_init_wakeup(&hcd->self.root_hub->dev, 0); | ||
49 | } | 53 | } |
50 | 54 | ||
51 | /* FIXME for some of the early AMD 760 southbridges, OHCI | 55 | /* FIXME for some of the early AMD 760 southbridges, OHCI |
@@ -88,6 +92,13 @@ ohci_pci_start (struct usb_hcd *hcd) | |||
88 | ohci_dbg (ohci, | 92 | ohci_dbg (ohci, |
89 | "enabled Compaq ZFMicro chipset quirk\n"); | 93 | "enabled Compaq ZFMicro chipset quirk\n"); |
90 | } | 94 | } |
95 | |||
96 | /* RWC may not be set for add-in PCI cards, since boot | ||
97 | * firmware probably ignored them. This transfers PCI | ||
98 | * PM wakeup capabilities (once the PCI layer is fixed). | ||
99 | */ | ||
100 | if (device_may_wakeup(&pdev->dev)) | ||
101 | ohci->hc_control |= OHCI_CTRL_RWC; | ||
91 | } | 102 | } |
92 | 103 | ||
93 | /* NOTE: there may have already been a first reset, to | 104 | /* NOTE: there may have already been a first reset, to |