From: Rafael J. Wysocki Date: Sat, 27 Feb 2010 20:37:37 +0000 (+0100) Subject: PCI/PM Runtime: Make runtime PM of PCI devices inactive by default X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~8074^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bb910a7040e90a0ca3d3e8245d6d5c128a5d1287;p=mirror_ubuntu-zesty-kernel.git PCI/PM Runtime: Make runtime PM of PCI devices inactive by default 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 Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 5b548aee9cbc..6e100ae7f5b5 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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 */