From 3aa523ae1d963d55ab00bc4a707cca87ea3563b4 Mon Sep 17 00:00:00 2001 From: Vidya Sagar Date: Thu, 5 May 2016 14:13:44 +0530 Subject: [PATCH] PCI: tegra: add PCI_REASSIGN_ALL_BUS flag adds PCI_REASSIGN_ALL_BUS pci flag so as to enable re-assigning bus numbers (if there is any bridge device added recently) during rescan. Bug 200192107 Change-Id: Iffc02827a75dcb82f5e02b69e96e65b38a0b7cd6 Signed-off-by: Vidya Sagar Reviewed-on: http://git-master/r/1144609 (cherry picked from commit 26464cda2eff345548e3271f26b00ddcd79d9264) Reviewed-on: http://git-master/r/1176833 (cherry picked from commit bf21f6959bbecc70b4dce07329e0deea32b41b67) Reviewed-on: http://git-master/r/1141937 (cherry picked from commit 284d2e97ce311771808d8dbd75c861a95c16d031) Reviewed-on: http://git-master/r/1210983 (cherry picked from commit ef83e7563eb0ce4dad493abba2c92d20a67f41ac) Reviewed-on: https://git-master.nvidia.com/r/c/linux-4.14/+/2371135 (cherry picked from commit a43acb68398f7fd6208988684698b49962b3c6f9) Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.9/+/2407883 Reviewed-by: automaticguardword Reviewed-by: Manikanta Maddireddy Reviewed-by: Bitan Biswas Reviewed-by: mobile promotions Tested-by: Manikanta Maddireddy Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/pci/controller/pci-tegra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index c5bdc1e04c3c..d8d6c233741c 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -3041,6 +3041,8 @@ static int tegra_pcie_probe(struct platform_device *pdev) goto pm_runtime_put; } + pci_add_flags(PCI_REASSIGN_ALL_BUS); + host->ops = &tegra_pcie_ops; host->map_irq = tegra_pcie_map_irq;