pci_wake_from_d3 (9) - Linux Manuals
pci_wake_from_d3: enable/disable device to wake up from D3_hot or D3_cold
pci_wake_from_d3 - enable/disable device to wake up from D3_hot or D3_cold
int pci_wake_from_d3(struct pci_dev
*dev, bool enable);
- PCI device to prepare
- True to enable wake-up event generation; false to disable
Many drivers want the device to wake up the system from D3_hot or D3_cold and this function allows them to set that up cleanly - pci_enable_wake should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints.