]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/PM: Resume subordinate bus in bus type callbacks
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 14 Apr 2022 13:04:13 +0000 (15:04 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 May 2022 19:19:45 +0000 (14:19 -0500)
commitcf18e5b8edd731341bb476f03fa294276a27b67e
tree4cbdeb14ca16e84f72b275cfad25ca745e67cfc8
parent65c2abaf3b79e71cbb4d6e93c4ba02ce81eafbf2
PCI/PM: Resume subordinate bus in bus type callbacks

Calling pci_resume_bus() on the secondary bus from pci_power_up() as it is
done now is questionable, because it depends on the mandatory bridge
power-up delays that are only covered by the PCI bus type PM callbacks.

For this reason, move the subordinate bus resume to those callbacks too and
use the observation that if a bridge is being powered-up during resume from
system-wide suspend, it may be still desirable to runtime-resume its
subordinate bus after completing the system-wide transition (in case the
resume of the devices on that bus is skipped during it).

Link: https://lore.kernel.org/r/3190097.aeNJFYEL58@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/pci-driver.c
drivers/pci/pci.c