Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb910a70 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Jesse Barnes
Browse files

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: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 64096c17
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1540,8 +1540,10 @@ void pci_pm_init(struct pci_dev *dev)
	int pm;
	int pm;
	u16 pmc;
	u16 pmc;


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

	dev->pm_cap = 0;
	dev->pm_cap = 0;


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