Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1238098

[PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT

From Phil Edworthy <phil.edworthy@renesas.com>
Newsgroups linux.kernel
Subject [PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT
Date 2015-10-02 12:30 +0200
Message-ID <qf5Lc-Ax-11@gated-at.bofh.it> (permalink)
References <qf5Lc-Ax-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/pci/host/pcie-rcar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
index 6057e31..8e583c2 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
 	struct resource *res;
 	int i;
 
-	pcie->root_bus_nr = -1;
+	pcie->root_bus_nr = pcie->busn.start;
 
 	/* Setup PCI resources */
 	for (i = 0; i < RCAR_PCI_MAX_RESOURCES; i++) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances Phil Edworthy <phil.edworthy@renesas.com> - 2015-10-02 12:30 +0200
  [PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT Phil Edworthy <phil.edworthy@renesas.com> - 2015-10-02 12:30 +0200
  [PATCH 1/4] PCI: rcar-pcie: Make PCI aware of the IO resources Phil Edworthy <phil.edworthy@renesas.com> - 2015-10-02 12:30 +0200
  [PATCH 2/4] PCI: rcar-pcie: Remove dependency on ARM-specific struct hw_pci Phil Edworthy <phil.edworthy@renesas.com> - 2015-10-02 12:30 +0200
  [PATCH 4/4] PCI: rcar-pcie: Fix IO offset for multiple instances Phil Edworthy <phil.edworthy@renesas.com> - 2015-10-02 12:30 +0200

csiph-web