From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85195CA9ECE for ; Thu, 31 Oct 2019 10:57:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62B042086D for ; Thu, 31 Oct 2019 10:57:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbfJaK5K (ORCPT ); Thu, 31 Oct 2019 06:57:10 -0400 Received: from foss.arm.com ([217.140.110.172]:47064 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726932AbfJaK5K (ORCPT ); Thu, 31 Oct 2019 06:57:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A76E446A; Thu, 31 Oct 2019 03:57:09 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1AB5F3F719; Thu, 31 Oct 2019 03:57:05 -0700 (PDT) Date: Thu, 31 Oct 2019 10:57:01 +0000 From: Lorenzo Pieralisi To: Rob Herring Cc: Andrew Murray , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Christoph Hellwig , Gustavo Pimentel , Heiko Stuebner , Hou Zhiqiang , Jingoo Han , Karthikeyan Mitran , Ley Foon Tan , Linus Walleij , linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, Matthias Brugger , Michal Simek , Ray Jui , rfi@lists.rocketboards.org, Ryder Lee , Scott Branden , Shawn Lin , Simon Horman , Srinath Mannam , Thomas Petazzoni , Toan Le , Tom Joseph , Will Deacon Subject: Re: [PATCH v3 00/25] PCI host resource consolidation Message-ID: <20191031105701.GA26080@e121166-lin.cambridge.arm.com> References: <20191028163256.8004-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191028163256.8004-1-robh@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Mon, Oct 28, 2019 at 11:32:31AM -0500, Rob Herring wrote: > This started with just dma-ranges parsing consolidation, but has expanded > to converting all host drivers to use pci_parse_request_of_pci_ranges() > rather than devm_of_pci_get_host_bridge_resources(). This series moves > the DT 'dma-ranges' parsing into common helpers utilizing a resource list. > There's no (intended) functional change in this series though I'm also > working on a separate series now in dt/next to improve the handling of > 'dma-ranges' and dma masks. > > The last patch may need to wait if there's any new users of > devm_of_pci_get_host_bridge_resources. I have applied it, along with the rest of the series, with v4 for: PCI: of: Add inbound resource parsing to helpers branch pci/mmio-dma-ranges, please let me know if there is something I have missed. Thanks, Lorenzo > Only versatile has been tested (on QEMU). The rest is compiled only. A git > branch is here[1]. > > v3: > - Fix >80 char lines > - Rename resource_list_get_entry_of_type to resource_list_first_type > > Rob > > [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git pci-ranges-cleanup-v3 > > > Rob Herring (25): > resource: Add a resource_list_first_type helper > PCI: Export pci_parse_request_of_pci_ranges() > PCI: aardvark: Use pci_parse_request_of_pci_ranges() > PCI: altera: Use pci_parse_request_of_pci_ranges() > PCI: dwc: Use pci_parse_request_of_pci_ranges() > PCI: faraday: Use pci_parse_request_of_pci_ranges() > PCI: iproc: Use pci_parse_request_of_pci_ranges() > PCI: mediatek: Use pci_parse_request_of_pci_ranges() > PCI: mobiveil: Use pci_parse_request_of_pci_ranges() > PCI: rockchip: Use pci_parse_request_of_pci_ranges() > PCI: rockchip: Drop storing driver private outbound resource data > PCI: v3-semi: Use pci_parse_request_of_pci_ranges() > PCI: xgene: Use pci_parse_request_of_pci_ranges() > PCI: xilinx: Use pci_parse_request_of_pci_ranges() > PCI: xilinx-nwl: Use pci_parse_request_of_pci_ranges() > PCI: versatile: Use pci_parse_request_of_pci_ranges() > PCI: versatile: Remove usage of PHYS_OFFSET > PCI: versatile: Enable COMPILE_TEST > PCI: of: Add inbound resource parsing to helpers > PCI: ftpci100: Use inbound resources for setup > PCI: v3-semi: Use inbound resources for setup > PCI: xgene: Use inbound resources for setup > PCI: iproc: Use inbound resources for setup > PCI: rcar: Use inbound resources for setup > PCI: Make devm_of_pci_get_host_bridge_resources() static > > drivers/pci/controller/Kconfig | 2 +- > .../pci/controller/dwc/pcie-designware-host.c | 29 ++---- > drivers/pci/controller/pci-aardvark.c | 60 +------------ > drivers/pci/controller/pci-ftpci100.c | 79 +++++----------- > drivers/pci/controller/pci-host-common.c | 2 +- > drivers/pci/controller/pci-v3-semi.c | 74 +++++---------- > drivers/pci/controller/pci-versatile.c | 71 ++++----------- > drivers/pci/controller/pci-xgene.c | 73 +++++---------- > drivers/pci/controller/pcie-altera.c | 41 +-------- > drivers/pci/controller/pcie-cadence-host.c | 2 +- > drivers/pci/controller/pcie-iproc-platform.c | 9 +- > drivers/pci/controller/pcie-iproc.c | 82 ++++------------- > drivers/pci/controller/pcie-mediatek.c | 43 +++------ > drivers/pci/controller/pcie-mobiveil.c | 27 ++---- > drivers/pci/controller/pcie-rcar.c | 48 ++++------ > drivers/pci/controller/pcie-rockchip-host.c | 89 +++++++------------ > drivers/pci/controller/pcie-rockchip.h | 5 -- > drivers/pci/controller/pcie-xilinx-nwl.c | 21 ++--- > drivers/pci/controller/pcie-xilinx.c | 18 +--- > drivers/pci/of.c | 51 +++++++++-- > drivers/pci/pci.h | 13 --- > include/linux/pci.h | 9 +- > include/linux/resource_ext.h | 12 +++ > 23 files changed, 261 insertions(+), 599 deletions(-) > > -- > 2.20.1