summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-06-05 22:53:09 +0000
committerimp <imp@FreeBSD.org>2005-06-05 22:53:09 +0000
commita0b037e61878d0da0e70fcf530e2a11e80a4e77a (patch)
tree3090feb2f983eacfff2fad96d03f17b20cb9c93b
parent53aade8a93c4f74e37f8274c80f3fde2809cd40f (diff)
downloadFreeBSD-src-a0b037e61878d0da0e70fcf530e2a11e80a4e77a.zip
FreeBSD-src-a0b037e61878d0da0e70fcf530e2a11e80a4e77a.tar.gz
Power state management now done in PCI bus code
-rw-r--r--sys/dev/usb/ohci_pci.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/usb/ohci_pci.c b/sys/dev/usb/ohci_pci.c
index ba9393a..e07c3ac 100644
--- a/sys/dev/usb/ohci_pci.c
+++ b/sys/dev/usb/ohci_pci.c
@@ -144,17 +144,6 @@ static int
ohci_pci_resume(device_t self)
{
ohci_softc_t *sc = device_get_softc(self);
- u_int32_t reg, int_line;
-
- if (pci_get_powerstate(self) != PCI_POWERSTATE_D0) {
- device_printf(self, "chip is in D%d mode "
- "-- setting to D0\n", pci_get_powerstate(self));
- reg = pci_read_config(self, PCI_CBMEM, 4);
- int_line = pci_read_config(self, PCIR_INTLINE, 4);
- pci_set_powerstate(self, PCI_POWERSTATE_D0);
- pci_write_config(self, PCI_CBMEM, reg, 4);
- pci_write_config(self, PCIR_INTLINE, int_line, 4);
- }
ohci_power(PWR_RESUME, sc);
bus_generic_resume(self);
OpenPOWER on IntegriCloud