PCI: xgene: Remove leftover pci_scan_child_bus() call
PATCH 1/1 PCI: xgene: Remove leftover pci_scan_child_bus() call
The changes in commit 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()") converted the xgene PCI host driver to the new pci_scan_root_bus_bridge() bus scanning API but erroneously left the existing pci_scan_child_bus() call in place which resulted in duplicate PCI bus enumerations.
Remove the leftover pci_scan_child_bus() call to properly complete the API conversion.
--- drivers/pci/host/pci-xgene.c | 1 - 1 file changed, 1 deletion(-)
drivers/pci/host/pci-xgene.c +0 -1
@@ -668,7 +668,6 @@ static int xgene_pcie_probe(struct platform_device *pdev) bus = bridge->bus; -pci_scan_child_bus (bus);pci_assign_unassigned_bus_resources (bus);list_for_each_entry (child, &bus->children, node)pcie_bus_configure_settings (child);
Signature · 1 line
2.9.5
PATCH 1/1 PCI: xgene: Remove leftover pci_scan_child_bus() call
Hi Tanmay,
Quoted 9 lines · Lorenzo Pieralisi
The changes in commit
9af275be15f7("PCI: xgene: Convert PCI scan API topci_scan_root_bus_bridge()") converted the xgene PCI host driver to the newpci_scan_root_bus_bridge()bus scanning API but erroneously left the existingpci_scan_child_bus()call in place which resulted in duplicate PCI bus enumerations.Remove the leftover
pci_scan_child_bus()call to properly complete the API conversion.
Quoted 7 lines
Fixes 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()")Signed-off-by Lorenzo Pieralisi <[email protected]>Cc Bjorn Helgaas <[email protected]>Cc Tanmay Inamdar <[email protected]>--- drivers/pci/host/pci-xgene.c | 1 - 1 file changed, 1 deletion(-)
Would you mind testing this fix and tag accordingly so that I can ask Bjorn to pull it please ?
Thanks,
Lorenzo
Quoted 15 lines
drivers/pci/host/pci-xgene.c +0
-1@@ -668,7 +668,6 @@ static int xgene_pcie_probe(struct platform_device *pdev) bus = bridge->bus; -pci_scan_child_bus (bus);pci_assign_unassigned_bus_resources (bus);list_for_each_entry (child, &bus->children, node)pcie_bus_configure_settings (child);Signature · 1 line
2.9.5
PATCH 1/1 PCI: xgene: Remove leftover pci_scan_child_bus() call
In reply to Lorenzo PieralisiHi Lorenzo,
Quoted 30 lines · Lorenzo Pieralisi
The changes in commit
9af275be15f7("PCI: xgene: Convert PCI scan API topci_scan_root_bus_bridge()") converted the xgene PCI host driver to the newpci_scan_root_bus_bridge()bus scanning API but erroneously left the existingpci_scan_child_bus()call in place which resulted in duplicate PCI bus enumerations.Remove the leftover
pci_scan_child_bus()call to properly complete the API conversion.Fixes 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()")Signed-off-by Lorenzo Pieralisi <[email protected]>Cc Bjorn Helgaas <[email protected]>Cc Tanmay Inamdar <[email protected]>--- drivers/pci/host/pci-xgene.c | 1 - 1 file changed, 1 deletion(-)drivers/pci/host/pci-xgene.c +0
-2@@ -668,7 +668,6 @@ static int xgene_pcie_probe(struct platform_device *pdev) bus = bridge->bus; -pci_scan_child_bus (bus);pci_assign_unassigned_bus_resources (bus);list_for_each_entry (child, &bus->children, node)pcie_bus_configure_settings (child); --
Quoted 2 lines
2.9.5
It is good with X-Gene
PATCH 1/1 PCI: xgene: Remove leftover pci_scan_child_bus() call
Quoted 39 lines · Khuong Dinh
Hi Lorenzo,
Quoted 30 lines · Lorenzo Pieralisi
The changes in commit
9af275be15f7("PCI: xgene: Convert PCI scan API topci_scan_root_bus_bridge()") converted the xgene PCI host driver to the newpci_scan_root_bus_bridge()bus scanning API but erroneously left the existingpci_scan_child_bus()call in place which resulted in duplicate PCI bus enumerations.Remove the leftover
pci_scan_child_bus()call to properly complete the API conversion.Fixes 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()")Signed-off-by Lorenzo Pieralisi <[email protected]>Cc Bjorn Helgaas <[email protected]>Cc Tanmay Inamdar <[email protected]>--- drivers/pci/host/pci-xgene.c | 1 - 1 file changed, 1 deletion(-)drivers/pci/host/pci-xgene.c +0
-2@@ -668,7 +668,6 @@ static int xgene_pcie_probe(struct platform_device *pdev) bus = bridge->bus; -pci_scan_child_bus (bus);pci_assign_unassigned_bus_resources (bus);list_for_each_entry (child, &bus->children, node)pcie_bus_configure_settings (child); --Quoted 2 lines
2.9.5
It is good with X-Gene
Quoted 1 line
Tested-by Khuong Dinh <[email protected]>
Thank you. Bjorn, I will queue this for v4.16 - I would add a stable tag since we have v4.13+ kernels scanning the bus twice on xgene, I am not too happy about this.
Thanks,
Lorenzo