1PCI_WAKE_FROM_D3(9)           Hardware Interfaces          PCI_WAKE_FROM_D3(9)
2
3
4

NAME

6       pci_wake_from_d3 - enable/disable device to wake up from D3_hot or
7       D3_cold
8

SYNOPSIS

10       int pci_wake_from_d3(struct pci_dev * dev, bool enable);
11

ARGUMENTS

13       dev
14           PCI device to prepare
15
16       enable
17           True to enable wake-up event generation; false to disable
18

DESCRIPTION

20       Many drivers want the device to wake up the system from D3_hot or
21       D3_cold and this function allows them to set that up cleanly -
22       pci_enable_wake should not be called twice in a row to enable wake-up
23       due to PCI PM vs ACPI ordering constraints.
24
25       This function only returns error code if the device is not capable of
26       generating PME# from both D3_hot and D3_cold, and the platform is
27       unable to enable wake-up power for it.
28
30Kernel Hackers Manual 3.10         June 2019               PCI_WAKE_FROM_D3(9)
Impressum