Skip to content

Commit

Permalink
PCI/PM Runtime: Make runtime PM of PCI devices inactive by default
Browse files Browse the repository at this point in the history
Make the run-time power management of PCI devices be inactive by
default by calling pm_runtime_forbid() for each PCI device during its
initialization.  This setting may be overriden by the user space with
the help of the /sys/devices/.../power/control interface.

That's necessary to avoid breakage on systems where ACPI-based
wake-up is known to fail for some devices.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Mar 5, 2010
1 parent 64096c1 commit bb910a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,8 +1540,10 @@ void pci_pm_init(struct pci_dev *dev)
int pm;
u16 pmc;

pm_runtime_forbid(&dev->dev);
device_enable_async_suspend(&dev->dev);
dev->wakeup_prepared = false;

dev->pm_cap = 0;

/* find PCI PM capability in list */
Expand Down

0 comments on commit bb910a7

Please sign in to comment.