aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2011-12-05 14:51:18 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-01-06 15:11:16 -0500
commit85b8582d7ca516030efb84d94fa29a73c1d9a125 (patch)
tree5a9b8bedd6091a2140026e8edb4eaeb8174597a5 /drivers/pci/pci.c
parent118faafaf987f521832843d36c6be580983f9a6b (diff)
PCI/PM/Runtime: make PCI traces quieter
When the runtime PM is activated on PCI, if a device switches state frequently (e.g. an EHCI controller with autosuspending USB devices connected) the PCI configuration traces might be very verbose in the kernel log. Let's guard those traces with DEBUG condition. Acked-by: "Rafael J. Wysocki" <rjw@sisk.pl> Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 5c5adef85bd7..54343aa5b30a 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -973,7 +973,7 @@ void pci_restore_state(struct pci_dev *dev)
973 for (i = 15; i >= 0; i--) { 973 for (i = 15; i >= 0; i--) {
974 pci_read_config_dword(dev, i * 4, &val); 974 pci_read_config_dword(dev, i * 4, &val);
975 if (val != dev->saved_config_space[i]) { 975 if (val != dev->saved_config_space[i]) {
976 dev_printk(KERN_DEBUG, &dev->dev, "restoring config " 976 dev_dbg(&dev->dev, "restoring config "
977 "space at offset %#x (was %#x, writing %#x)\n", 977 "space at offset %#x (was %#x, writing %#x)\n",
978 i, val, (int)dev->saved_config_space[i]); 978 i, val, (int)dev->saved_config_space[i]);
979 pci_write_config_dword(dev,i * 4, 979 pci_write_config_dword(dev,i * 4,
@@ -1542,8 +1542,7 @@ void pci_pme_active(struct pci_dev *dev, bool enable)
1542 } 1542 }
1543 1543
1544out: 1544out:
1545 dev_printk(KERN_DEBUG, &dev->dev, "PME# %s\n", 1545 dev_dbg(&dev->dev, "PME# %s\n", enable ? "enabled" : "disabled");
1546 enable ? "enabled" : "disabled");
1547} 1546}
1548 1547
1549/** 1548/**