diff options
author | Phil Edworthy <phil.edworthy@renesas.com> | 2015-10-02 06:25:06 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-10-30 09:23:15 -0400 |
commit | 42175a35534aab13016297fb48763e9f1126a0ab (patch) | |
tree | 0ff3c4c35ea4c33116e2b7cc9fa9fb55f7d5eace | |
parent | 79953dd22c1dfe38196485b53987466b048b8cc2 (diff) |
PCI: rcar: Set root bus nr to that provided in DT
On ARM64, setting the root bus number to -1 causes probe failure.
Moreover, we should use the bus number specified in the DT as we could have
multiple PCIe controllers with different bus ranges.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | drivers/pci/host/pcie-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 6057e3193e0f..8e583c200f02 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c | |||
@@ -362,7 +362,7 @@ static int rcar_pcie_setup(int nr, struct list_head *resource, struct rcar_pcie | |||
362 | struct resource *res; | 362 | struct resource *res; |
363 | int i; | 363 | int i; |
364 | 364 | ||
365 | pcie->root_bus_nr = -1; | 365 | pcie->root_bus_nr = pcie->busn.start; |
366 | 366 | ||
367 | /* Setup PCI resources */ | 367 | /* Setup PCI resources */ |
368 | for (i = 0; i < RCAR_PCI_MAX_RESOURCES; i++) { | 368 | for (i = 0; i < RCAR_PCI_MAX_RESOURCES; i++) { |