From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934662AbeE2NUX (ORCPT ); Tue, 29 May 2018 09:20:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:49536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934304AbeE2NUR (ORCPT ); Tue, 29 May 2018 09:20:17 -0400 Date: Tue, 29 May 2018 08:20:15 -0500 From: Bjorn Helgaas To: Jan Kiszka Cc: Vladimir Zapolskiy , Bjorn Helgaas , Linux Kernel Mailing List , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jingoo Han , Joao Pinto , Lorenzo Pieralisi Subject: Re: [PATCH v4 4/8] PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources with device Message-ID: <20180529132015.GA79098@bhelgaas-glaptop.roam.corp.google.com> References: <5f2226585c6af9920b266d0503e32042d4c9e440.1526375226.git.jan.kiszka@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 12:46:35PM +0200, Jan Kiszka wrote: > On 2018-05-28 12:00, Vladimir Zapolskiy wrote: > > Hi Jan, Bjorn, > > > > On 05/15/2018 12:07 PM, Jan Kiszka wrote: > >> From: Jan Kiszka > >> > >> Another step towards a managed version of > >> of_pci_get_host_bridge_resources(): Feed in the underlying device, > >> rather than just the OF node. This will allow to use managed resource > >> allocation internally later on. > >> > >> CC: Jingoo Han > >> CC: Joao Pinto > >> CC: Lorenzo Pieralisi > >> Signed-off-by: Jan Kiszka > > > > [snip] > > > >> diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c > >> index a6af62e0256d..61802e55a00c 100644 > >> --- a/drivers/pci/host/pcie-altera.c > >> +++ b/drivers/pci/host/pcie-altera.c > >> @@ -488,11 +488,10 @@ static int altera_pcie_parse_request_of_pci_ranges(struct altera_pcie *pcie) > >> { > >> int err, res_valid = 0; > >> struct device *dev = &pcie->pdev->dev; > >> - struct device_node *np = dev->of_node; > >> struct resource_entry *win; > >> > >> - err = of_pci_get_host_bridge_resources(np, 0, 0xff, &pcie->resources, > >> - NULL); > >> + err = of_pci_get_host_bridge_resources(dev, 0, 0xff > >> + &pcie->resources, NULL); > >> if (err) > >> return err; > >> > > > > In case if it is an undiscovered issue, a comma was mistakenly removed, > > which will result it compilation error. > > > > The problem is also found in pci/next , see commit 88e3909aa125. > > Yes, that's known. We have a bisection breakage: The issue was fixed > again by patch 6 in that series. I updated 88e3909aa125 to fix the bisection issue. I'll rebuild pci/next later today or tomorrow.