]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PCI / PM: Support for LEAVE_SUSPENDED driver flag
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 18 Nov 2017 14:33:52 +0000 (15:33 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:43:13 +0000 (10:43 -0500)
commitd7d809983e53ea10b63dadd87d460e9f0addce56
treea0474e5841db7b62c7a6ef377c5c71cb2a061696
parentcc05b2adb4ccec62b6d7465dc2c7e27a2792ab41
PCI / PM: Support for LEAVE_SUSPENDED driver flag

BugLink: http://bugs.launchpad.net/bugs/1756094
Add support for DPM_FLAG_LEAVE_SUSPENDED to the PCI bus type by
making it (a) set the power.may_skip_resume status bit for devices
that, from its perspective, may be left in suspend after system
wakeup from sleep and (b) return early from pci_pm_resume_noirq()
for devices whose remaining resume callbacks during the transition
under way are going to be skipped by the PM core.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
(cherry picked from commit bd755d770ac78e8eeda05877ba66cc66f151e10e)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Documentation/power/pci.txt
drivers/pci/pci-driver.c