summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2010-06-30 04:31:38 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2010-06-30 04:31:38 +0000
commit7bff6b802392faa9043c6a2150e1c12199d13def (patch)
tree65b7822fefe303e8d5c5c36d377fb1bd201983dd
parent38a7187bdfc3d6e73ae6871a39b21642f45e4fdb (diff)
Preserve and restore BARs on suspend/resume for all devices, not just
those that have the power management capability. Fixes UHCI(USB 1.1) on a bunch of machines. Tested on a wide variety of amd64 and i386 machines. ok kettenis@, deraadt@
-rw-r--r--sys/dev/pci/pci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 7e21eeacf1f..dbd29bfded2 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.77 2010/06/29 22:08:29 jordan Exp $ */
+/* $OpenBSD: pci.c,v 1.78 2010/06/30 04:31:37 mlarkin Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -370,9 +370,6 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
if (PCI_HDRTYPE_TYPE(reg) != 0)
return(0);
- if (pci_get_capability(pc, tag,
- PCI_CAP_PWRMGMT, NULL, NULL) == 0)
- return(0);
if (!(pd = malloc(sizeof *pd, M_DEVBUF,
M_NOWAIT)))
return(0);