]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SPARC64]: Disable verbose PCI IRQ probing messages by default.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 22 Jun 2006 05:07:21 +0000 (22:07 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 24 Jun 2006 06:15:09 +0000 (23:15 -0700)
Allow them to be enabled with "pci=irq_verbose" on the
boot command line.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci_common.c

index a868c3792efbe58f93b39666f0054b5c1cc8a129..6c9e3e94abaa74a68fb06f05f9ba857c0721661f 100644 (file)
@@ -406,8 +406,14 @@ void pcibios_bus_to_resource(struct pci_dev *pdev, struct resource *res,
 }
 EXPORT_SYMBOL(pcibios_bus_to_resource);
 
+extern int pci_irq_verbose;
+
 char * __init pcibios_setup(char *str)
 {
+       if (!strcmp(str, "irq_verbose")) {
+               pci_irq_verbose = 1;
+               return NULL;
+       }
        return str;
 }
 
index fc71b28795a0a8a09559ddd1aa19ef358d4deafe..2319d732b13e4360e296f1577a682f4c724437ae 100644 (file)
@@ -10,6 +10,9 @@
 
 #include <asm/pbm.h>
 
+/* Pass "pci=irq_verbose" on the kernel command line to enable this.  */
+int pci_irq_verbose;
+
 /* Fix self device of BUS and hook it into BUS->self.
  * The pci_scan_bus does not do this for the host bridge.
  */
@@ -556,9 +559,10 @@ static inline unsigned int pci_slot_swivel(struct pci_pbm_info *pbm,
 
        ret = ((interrupt - 1 + (PCI_SLOT(pdev->devfn) & 3)) & 3) + 1;
 
-       printk("%s: %s IRQ Swivel %s [%x:%x] -> [%x]\n",
-              pbm->name, pci_name(toplevel_pdev), pci_name(pdev),
-              interrupt, PCI_SLOT(pdev->devfn), ret);
+       if (pci_irq_verbose)
+               printk("%s: %s IRQ Swivel %s [%x:%x] -> [%x]\n",
+                      pbm->name, pci_name(toplevel_pdev), pci_name(pdev),
+                      interrupt, PCI_SLOT(pdev->devfn), ret);
 
        return ret;
 }
@@ -616,10 +620,11 @@ static inline unsigned int pci_apply_intmap(struct pci_pbm_info *pbm,
                }
        }
 
-       printk("%s: %s MAP BUS %s DEV %s [%x] -> [%x]\n",
-              pbm->name, pci_name(toplevel_pdev),
-              pci_name(pbus), pci_name(pdev),
-              orig_interrupt, interrupt);
+       if (pci_irq_verbose)
+               printk("%s: %s MAP BUS %s DEV %s [%x] -> [%x]\n",
+                      pbm->name, pci_name(toplevel_pdev),
+                      pci_name(pbus), pci_name(pdev),
+                      orig_interrupt, interrupt);
 
 no_intmap:
        return interrupt;
@@ -714,10 +719,11 @@ fail:
        return 0;
 
 success:
-       printk("%s: Routing bus[%2x] slot[%2x] to INO[%02x]\n",
-              pbm->name,
-              pdev->bus->number, PCI_SLOT(pdev->devfn),
-              *interrupt);
+       if (pci_irq_verbose)
+               printk("%s: Routing bus[%2x] slot[%2x] to INO[%02x]\n",
+                      pbm->name,
+                      pdev->bus->number, PCI_SLOT(pdev->devfn),
+                      *interrupt);
        return 1;
 }