]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.60/pci-xgene-remove-leftover-pci_scan_child_bus-call.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.14.60 / pci-xgene-remove-leftover-pci_scan_child_bus-call.patch
CommitLineData
34c89bcb
GKH
1From 94b9d290b753cbbc87971ee134511245f5872a83 Mon Sep 17 00:00:00 2001
2From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
3Date: Tue, 21 Nov 2017 15:49:31 +0000
4Subject: PCI: xgene: Remove leftover pci_scan_child_bus() call
5
6From: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
7
8commit 94b9d290b753cbbc87971ee134511245f5872a83 upstream.
9
10The changes in commit 9af275be15f7 ("PCI: xgene: Convert PCI scan API to
11pci_scan_root_bus_bridge()") converted the xgene PCI host driver to
12the new pci_scan_root_bus_bridge() bus scanning API but erroneously left
13the existing pci_scan_child_bus() call in place which resulted in duplicate
14PCI bus enumerations.
15
16Remove the leftover pci_scan_child_bus() call to properly complete the API
17conversion.
18
19Fixes: 9af275be15f7 ("PCI: xgene: Convert PCI scan API to pci_scan_root_bus_bridge()")
20Tested-by: Khuong Dinh <kdinh@apm.com>
21Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
22Cc: <stable@vger.kernel.org> # 4.13+
23Cc: Bjorn Helgaas <bhelgaas@google.com>
24Cc: Tanmay Inamdar <tinamdar@apm.com>
25Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
26Signed-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);