From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbbJBK3K (ORCPT ); Fri, 2 Oct 2015 06:29:10 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:49148 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751901AbbJBK3G (ORCPT ); Fri, 2 Oct 2015 06:29:06 -0400 X-IronPort-AV: E=Sophos;i="5.17,622,1437404400"; d="scan'208";a="196846919" From: Phil Edworthy To: Bjorn Helgaas Cc: Simon Horman , Nobuhiro Iwamatsu , Geert Uytterhoeven , linux-pci@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Phil Edworthy X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443781507-5011-1-git-send-email-phil.edworthy@renesas.com> References: <1443781507-5011-1-git-send-email-phil.edworthy@renesas.com> X-TNEFEvaluated: 1 Message-ID: <1443781507-5011-4-git-send-email-phil.edworthy@renesas.com> Date: Fri, 2 Oct 2015 11:25:06 +0100 Subject: [PATCH 3/4] PCI: rcar-pcie: Set root bus nr to that provided in DT X-MIMETrack: Itemize by SMTP Server on DU0NOTES13/SERVER/REE(Release 8.5.3 HF466|March 09, 2012) at 02.10.2015 12:29:02, Serialize by Router on DU0NOTES13/SERVER/REE(Release 8.5.3 HF466|March 09, 2012) at 02.10.2015 12:29:03, Serialize complete at 02.10.2015 12:29:03 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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