aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_irq.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/acpi/pci_irq.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/acpi/pci_irq.c')
-rw-r--r--drivers/acpi/pci_irq.c10
1 files changed, 5 insertions, 5 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}