summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-04 23:43:23 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-04 23:43:23 +0200
commit60987c9b861ab894af34580013869c1fd00567bc (patch)
tree93929d9f341eb216ad46c9a956adc7f03a9ff511
parentb695a1dcd6fcfbe328998e6e3805cdba868c4af4 (diff)
parentca67ab5c5afbcec9df199e01838270eb5668af68 (diff)
downloadlinux-60987c9b861ab894af34580013869c1fd00567bc.tar.gz
Merge branch 'pm-pci' into linux-next
* pm-pci: PCI / PM: Add dev_dbg() to print device suspend power states
-rw-r--r--drivers/pci/pci-driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 3d04b59..9be56306 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);
/*