]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI/PM: Set power.strict_midlayer in pci_pm_init()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Jun 2025 19:29:16 +0000 (21:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jul 2025 15:10:40 +0000 (17:10 +0200)
commitf19dc0489ed52f527e9b198b86b0b807ebbfa4e5
treecf40104197b8eb1c63fb4b8f937a4ba9b7ab5de5
parent325e3778eac3916f3451f8ceccafdc31427ccdd1
PCI/PM: Set power.strict_midlayer in pci_pm_init()

The PCI bus type does not expect its runtime PM suspend callback
function, pci_pm_runtime_suspend(), to be invoked at all during system-
wide suspend and resume, and it does not expect its runtime resume
callback function, pci_pm_runtime_resume(), to be invoked at any point
when runtime PM is disabled for the given device during system-wide
suspend and resume, so make it express that expectation by setting
power.strict_midlayer for all PCI devices in pci_pm_prepare() and
clear it in pci_pm_complete().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/1925097.atdPhlSkOF@rjwysocki.net
drivers/pci/pci-driver.c