aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/acpi/pci_irq.c10
-rw-r--r--drivers/pci/pci.c5
-rw-r--r--drivers/pci/setup-res.c6
3 files changed, 10 insertions, 11 deletions
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
index 7f9eba9a0b02..0eefa12e648c 100644
--- a/drivers/acpi/pci_irq.c
+++ b/drivers/acpi/pci_irq.c
@@ -487,10 +487,10 @@ int acpi_pci_irq_enable(struct pci_dev *dev)
487 else 487 else
488 link_desc[0] = '\0'; 488 link_desc[0] = '\0';
489 489
490 dev_info(&dev->dev, "PCI INT %c%s -> GSI %u (%s, %s) -> IRQ %d\n", 490 dev_dbg(&dev->dev, "PCI INT %c%s -> GSI %u (%s, %s) -> IRQ %d\n",
491 pin_name(pin), link_desc, gsi, 491 pin_name(pin), link_desc, gsi,
492 (triggering == ACPI_LEVEL_SENSITIVE) ? "level" : "edge", 492 (triggering == ACPI_LEVEL_SENSITIVE) ? "level" : "edge",
493 (polarity == ACPI_ACTIVE_LOW) ? "low" : "high", dev->irq); 493 (polarity == ACPI_ACTIVE_LOW) ? "low" : "high", dev->irq);
494 494
495 return 0; 495 return 0;
496} 496}
@@ -524,6 +524,6 @@ void acpi_pci_irq_disable(struct pci_dev *dev)
524 * (e.g. PCI_UNDEFINED_IRQ). 524 * (e.g. PCI_UNDEFINED_IRQ).
525 */ 525 */
526 526
527 dev_info(&dev->dev, "PCI INT %c disabled\n", pin_name(pin)); 527 dev_dbg(&dev->dev, "PCI INT %c disabled\n", pin_name(pin));
528 acpi_unregister_gsi(gsi); 528 acpi_unregister_gsi(gsi);
529} 529}
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/**
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
index 5717509becbe..b66bfdbd21f7 100644
--- a/drivers/pci/setup-res.c
+++ b/drivers/pci/setup-res.c
@@ -85,9 +85,9 @@ void pci_update_resource(struct pci_dev *dev, int resno)
85 } 85 }
86 } 86 }
87 res->flags &= ~IORESOURCE_UNSET; 87 res->flags &= ~IORESOURCE_UNSET;
88 dev_info(&dev->dev, "BAR %d: set to %pR (PCI address [%#llx-%#llx])\n", 88 dev_dbg(&dev->dev, "BAR %d: set to %pR (PCI address [%#llx-%#llx])\n",
89 resno, res, (unsigned long long)region.start, 89 resno, res, (unsigned long long)region.start,
90 (unsigned long long)region.end); 90 (unsigned long long)region.end);
91} 91}
92 92
93int pci_claim_resource(struct pci_dev *dev, int resource) 93int pci_claim_resource(struct pci_dev *dev, int resource)