Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2164028imm; Mon, 28 May 2018 03:00:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoBgIayNeDf6MtX7GD36YHFEPeZMEbh2rhSu6zvYYv1yaRsMOOtDhYPK9qh2EeGeqBX2IAX X-Received: by 2002:a62:9b8d:: with SMTP id e13-v6mr12937146pfk.157.1527501659895; Mon, 28 May 2018 03:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527501659; cv=none; d=google.com; s=arc-20160816; b=bfkqFWNOQBlnFIt2DrsQ5RJXvoJD6nQzvsIwRGwZmik9MNytX27faQT0NdvDM9ulZ0 ME2wKjgVeq+9F8UWWuGKY6ingo/WSXb06mcfgU0Fw6fqxKd6j4fw9R3i7ypv2C47iIki 6Si9eXW2Z0z2C3eKdzOhCAUz0C8+UX1zgkJ5uKyjRHANi7elQMSvTo5ZseyEQKCnlMd7 AUQDuPyedYA+4ZQhFVwbpmKXXpYSHWxjJVRA0w1xDIyC2SqvS6OxUi7VEwr1graahBCH Py8FEXPVLkkL2GsZyPaHqnGUUFscMfEduohQHQoLekDS6dpsZtMFsb82wQGK3nD5EOyq GW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=zVfdnnAYzRAIjFMjx8oZiQ5/+OuFicncymI2KXRArjA=; b=iHrM7ikPEpMH7ja/i8cHBEbkCgHZelprpWBvzEFf7vOFkf1kwsB4NZrn59uzC9xkqd gIepcObOl1xvpvpYNDCXB5yTRhYGHNzjitYhSyQ67aHL+pue0nxFkSg33YkOK4sShXlA i4r1/zddFoNEbIa93LKZQQbqSSOqzjxuEpoiA7M6r7chBuUpxCu0bMI72++CAAXnXxoU N+Sv53qeRHebduuDbi00Ugv3ho6LoN0dFYj3LLzbt2S/UHuVRfSy3PqgqBQHhIaiTdCT vTpUZvSpZKloQaDfVLUYpEJ5a9O9VqGFQnFDcJcVfzopazOjgrRQiXANNejBllzshmtd 2GhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3-v6si23223024pgc.251.2018.05.28.03.00.44; Mon, 28 May 2018 03:00:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932134AbeE1KAb (ORCPT + 99 others); Mon, 28 May 2018 06:00:31 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:38974 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754173AbeE1KA2 (ORCPT ); Mon, 28 May 2018 06:00:28 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fNEwz-0006Hq-RM from Vladimir_Zapolskiy@mentor.com ; Mon, 28 May 2018 03:00:25 -0700 Received: from [137.202.108.125] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 28 May 2018 11:00:22 +0100 Subject: Re: [PATCH v4 4/8] PCI: Replace dev_node parameter of of_pci_get_host_bridge_resources with device To: Jan Kiszka , Bjorn Helgaas , Linux Kernel Mailing List , , References: <5f2226585c6af9920b266d0503e32042d4c9e440.1526375226.git.jan.kiszka@siemens.com> CC: Jingoo Han , Joao Pinto , Lorenzo Pieralisi From: Vladimir Zapolskiy Message-ID: Date: Mon, 28 May 2018 13:00:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <5f2226585c6af9920b266d0503e32042d4c9e440.1526375226.git.jan.kiszka@siemens.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- With best wishes, Vladimir