Commit 42175a35 authored by Phil Edworthy's avatar Phil Edworthy Committed by Bjorn Helgaas

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: default avatarPhil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 79953dd2
...@@ -362,7 +362,7 @@ static int rcar_pcie_setup(int nr, struct list_head *resource, struct rcar_pcie ...@@ -362,7 +362,7 @@ static int rcar_pcie_setup(int nr, struct list_head *resource, struct rcar_pcie
struct resource *res; struct resource *res;
int i; int i;
pcie->root_bus_nr = -1; pcie->root_bus_nr = pcie->busn.start;
/* Setup PCI resources */ /* Setup PCI resources */
for (i = 0; i < RCAR_PCI_MAX_RESOURCES; i++) { for (i = 0; i < RCAR_PCI_MAX_RESOURCES; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment