Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143860392
D49266.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D49266.diff
View Options
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,8 +391,6 @@
{
device_t child, dev;
ACPI_STATUS status;
- int pmc;
- uint16_t pmstat;
int error;
dev = context;
@@ -419,12 +417,8 @@
return;
}
if ((acpi_quirks & ACPI_Q_CLEAR_PME_ON_DETACH) &&
- (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);
- }
+ pci_has_pm(child))
+ pci_clear_pme(child);
status = acpi_SetInteger(h, "_EJ0", 1);
if (ACPI_FAILURE(status)) {
bus_topo_unlock();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 2, 3:47 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28310749
Default Alt Text
D49266.diff (757 B)
Attached To
Mode
D49266: acpi_pci: Use pci_has_pm and pci_clear_pme
Attached
Detach File
Event Timeline
Log In to Comment