Page MenuHomeFreeBSD

D49146.id151541.diff
No OneTemporary

D49146.id151541.diff

diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c
--- a/sys/dev/acpica/acpi_pci.c
+++ b/sys/dev/acpica/acpi_pci.c
@@ -391,6 +391,8 @@
{
device_t child, dev;
ACPI_STATUS status;
+ int pmc;
+ uint16_t pmstat;
int error;
dev = context;
@@ -416,6 +418,12 @@
device_get_nameunit(child), error);
return;
}
+ if (pci_find_cap(child, PCIY_PMG, &pmc) == 0) {
+ pmstat = pci_read_config(child, pmc + PCIR_POWER_STATUS, 2);
+ pmstat &= ~PCIM_PSTAT_PMEENABLE;
+ pmstat |= PCIM_PSTAT_PME;
+ pci_write_config(child, pmc + PCIR_POWER_STATUS, pmstat, 2);
+ }
status = acpi_SetInteger(h, "_EJ0", 1);
if (ACPI_FAILURE(status)) {
bus_topo_unlock();

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 22, 11:23 AM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31973662
Default Alt Text
D49146.id151541.diff (694 B)

Event Timeline