PCI: tegra: Remove PCI_REASSIGN_ALL_BUS use on Tegra
authorManikanta Maddireddy <mmaddireddy@nvidia.com>
Tue, 9 Jan 2018 09:19:33 +0000 (14:49 +0530)
committerBjorn Helgaas <helgaas@kernel.org>
Thu, 11 Jan 2018 18:16:09 +0000 (12:16 -0600)
Bridge primary, secondary, and subordinate bus numbers power up as zero,
and Tegra firmware doesn't program them.

pci_scan_bridge_extend() automatically programs these bus numbers if they
are zero, so we don't need to set the PCI_REASSIGN_ALL_BUS flag for Tegra.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/pci/host/pci-tegra.c

index ee193767f77bb1af9c30f98ee814666542eef32d..67328a21d0ee196c3c0830f7047f568f3553b4ce 100644 (file)
@@ -2382,7 +2382,6 @@ static int tegra_pcie_probe(struct platform_device *pdev)
 
        tegra_pcie_enable_ports(pcie);
 
-       pci_add_flags(PCI_REASSIGN_ALL_BUS);
        host->busnr = pcie->busn.start;
        host->dev.parent = &pdev->dev;
        host->ops = &tegra_pcie_ops;