diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-30 01:31:15 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-10-03 02:40:38 +0200 |
commit | ca67ab5c5afbcec9df199e01838270eb5668af68 (patch) | |
tree | fa051ae5338c279ed414d7a4a12c9c2e4f53228e | |
parent | PCI / PM: Do not resume any devices in pci_pm_prepare() (diff) | |
download | linux-ca67ab5c5afbcec9df199e01838270eb5668af68.tar.xz linux-ca67ab5c5afbcec9df199e01838270eb5668af68.zip |
PCI / PM: Add dev_dbg() to print device suspend power states
It sometimes is useful to know what power states the kernel thinks
it puts PCI devices into during system suspend, so add a dev_dbg()
statement for that.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/pci-driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 3d04b59ffdb2..9be563067c0c 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -798,6 +798,9 @@ static int pci_pm_suspend_noirq(struct device *dev) pci_prepare_to_sleep(pci_dev); } + dev_dbg(dev, "PCI PM: Suspend power state: %s\n", + pci_power_name(pci_dev->current_state)); + pci_pm_set_unknown_state(pci_dev); /* |