diff options
author | 2010-06-30 04:31:37 +0000 | |
---|---|---|
committer | 2010-06-30 04:31:37 +0000 | |
commit | cac3b8c8acb7c6bca13151d858e018328e51148e (patch) | |
tree | 55e6915e1c30290f0e53931d2eb4811f652d360a | |
parent | Move OBJ_NAME and ATTR_NAME macros to schema.h so it's reachable from (diff) | |
download | wireguard-openbsd-cac3b8c8acb7c6bca13151d858e018328e51148e.tar.xz wireguard-openbsd-cac3b8c8acb7c6bca13151d858e018328e51148e.zip |
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.c | 5 |
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); |