]>
Commit | Line | Data |
---|---|---|
34c89bcb GKH |
1 | From 94b9d290b753cbbc87971ee134511245f5872a83 Mon Sep 17 00:00:00 2001 |
2 | From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | |
3 | Date: Tue, 21 Nov 2017 15:49:31 +0000 | |
4 | Subject: PCI: xgene: Remove leftover pci_scan_child_bus() call | |
5 | ||
6 | From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | |
7 | ||
8 | commit 94b9d290b753cbbc87971ee134511245f5872a83 upstream. | |
9 | ||
10 | The changes in commit 9af275be15f7 ("PCI: xgene: Convert PCI scan API to | |
11 | pci_scan_root_bus_bridge()") converted the xgene PCI host driver to | |
12 | the new pci_scan_root_bus_bridge() bus scanning API but erroneously left | |
13 | the existing pci_scan_child_bus() call in place which resulted in duplicate | |
14 | PCI bus enumerations. | |
15 | ||
16 | Remove the leftover pci_scan_child_bus() call to properly complete the API | |
17 | conversion. | |
18 | ||
19 | Fixes: 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()") | |
20 | Tested-by: Khuong Dinh <kdinh@apm.com> | |
21 | Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | |
22 | Cc: <stable@vger.kernel.org> # 4.13+ | |
23 | Cc: Bjorn Helgaas <bhelgaas@google.com> | |
24 | Cc: Tanmay Inamdar <tinamdar@apm.com> | |
25 | Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> | |
26 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
27 | ||
28 | --- | |
29 | drivers/pci/host/pci-xgene.c | 1 - | |
30 | 1 file changed, 1 deletion(-) | |
31 | ||
32 | --- a/drivers/pci/host/pci-xgene.c | |
33 | +++ b/drivers/pci/host/pci-xgene.c | |
34 | @@ -686,7 +686,6 @@ static int xgene_pcie_probe_bridge(struc | |
35 | ||
36 | bus = bridge->bus; | |
37 | ||
38 | - pci_scan_child_bus(bus); | |
39 | pci_assign_unassigned_bus_resources(bus); | |
40 | list_for_each_entry(child, &bus->children, node) | |
41 | pcie_bus_configure_settings(child); |