summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-10-13 17:24:03 +0000
committerderaadt <deraadt@openbsd.org>2012-10-13 17:24:03 +0000
commitdb6ad78126670c10c28c601381fbe29eb8c38117 (patch)
treec2a6b193ef760d2fce85db836d80f8300ebe4e03
parentTZ does not fit on the floppy media (we have encountered this on other (diff)
downloadwireguard-openbsd-db6ad78126670c10c28c601381fbe29eb8c38117.tar.xz
wireguard-openbsd-db6ad78126670c10c28c601381fbe29eb8c38117.zip
This device should not put itself into D3 by itself when going to WOL;
allow the pci subsystem to do that based on BIOS information if it needs. Tested by stsp
-rw-r--r--sys/dev/pci/if_xl_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_xl_pci.c b/sys/dev/pci/if_xl_pci.c
index 9d135d7c4f3..f4701177675 100644
--- a/sys/dev/pci/if_xl_pci.c
+++ b/sys/dev/pci/if_xl_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xl_pci.c,v 1.38 2011/10/13 13:09:29 kettenis Exp $ */
+/* $OpenBSD: if_xl_pci.c,v 1.39 2012/10/13 17:24:03 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -374,7 +374,5 @@ xl_pci_wol_power(void *ppsc)
command = pci_conf_read(psc->psc_pc, psc->psc_tag, XL_PCI_PWRMGMTCTRL);
command |= XL_PME_EN;
pci_conf_write(psc->psc_pc, psc->psc_tag, XL_PCI_PWRMGMTCTRL, command);
-
- pci_set_powerstate(psc->psc_pc, psc->psc_tag, PCI_PMCSR_STATE_D3);
}
#endif