pci_wake_from_d3(9)

pci_wake_from_d39

Enable/disable device to wake up from d3_hot or d3_cold

Usage

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

Arguments

dev

PCI device to prepare

enable

True to enable wake-up event generation; false to disable

Overview

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.

This function only returns error code if the device is not capable of generating PME# from both D3_hot and D3_cold, and the platform is unable to enable wake-up power for it.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.