[PATCH 1/4] PCI: log bridge reconfiguration information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reassigning bus numbers is major reconfiguration that we should tell the
user about.

Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
---
 drivers/pci/probe.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 7cc9e2f..e282580 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -654,7 +654,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
 	/* Check if setup is sensible at all */
 	if (!pass &&
 	    (primary != bus->number || secondary <= bus->number)) {
-		dev_dbg(&dev->dev, "bus configuration invalid, reconfiguring\n");
+		dev_info(&dev->dev, "invalid config (primary %02x, bridge to [bus %02x-%02x]); reconfiguring\n",
+			 primary, secondary, subordinate);
 		broken = 1;
 	}
 
@@ -743,6 +744,9 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
 		/*
 		 * We need to blast all three values with a single write.
 		 */
+		dev_info(&dev->dev,
+			 "assigned primary %02x, bridge to [bus %02x-%02x]\n",
+			 child->primary, child->secondary, child->subordinate);
 		pci_write_config_dword(dev, PCI_PRIMARY_BUS, buses);
 
 		if (!is_cardbus) {

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux