From patchwork Wed Oct 16 20:06:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 1178111 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46tjxT1vl4z9sP3 for ; Thu, 17 Oct 2019 07:06:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725965AbfJPUGw (ORCPT ); Wed, 16 Oct 2019 16:06:52 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46884 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729308AbfJPUGv (ORCPT ); Wed, 16 Oct 2019 16:06:51 -0400 Received: by mail-ot1-f65.google.com with SMTP id 89so21271642oth.13; Wed, 16 Oct 2019 13:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vEhUbOsT/IrSzaUGuxD9GomjoUN0UdgTtSdOqaXU8v4=; b=rujPoBFyee9DhRWi6/Yf4sJ7hr3WFaZ01sFbuUHygXoa0kAygAKdHhU0T8lze8mpHe pYcl/168vm1pnRLstmEk0cKXYWtkHnUuy+5ejsEgSAn5PRtCo9vog74m0HlMUbPCFm9/ nAHOfH/BG57r+7Z8GoTUwu8ek9ZaSLVygywDfJRtDhHPdNt38lIk8gw04H8bwGOe3v33 M4brUsu3+fCdx1FhbeZo9ZWrCGu1bdhNPge8XKnCd7Q/k3wnx3fmQc1LL0HoUv04QdU2 3+kQ6DZqF9mFGSWAnGRTID8fqmk2SMfoYdz/B3+IyI9xWoo9gyhJOouzfM/wQBLi6Xfb xG3g== X-Gm-Message-State: APjAAAVM7ftcrv0ZdmbdtFNm9qDlzkfr1DWeCQxLngBHI6zitljUS/Z9 FPnMWWgzY51znfMxqooCew== X-Google-Smtp-Source: APXvYqwaSOuDxAClnQads2cYtaYnZGwB73Z07nxMgMTwvE0egIKnPl8fW5MZwWyKYkqhfvtFPntPJg== X-Received: by 2002:a9d:334:: with SMTP id 49mr32081otv.15.1571256409727; Wed, 16 Oct 2019 13:06:49 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id a9sm7412463oie.7.2019.10.16.13.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 13:06:48 -0700 (PDT) From: Rob Herring To: Andrew Murray , Bjorn Helgaas , Lorenzo Pieralisi Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, 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: [PATCH v2 00/25] PCI host resource consolidation Date: Wed, 16 Oct 2019 15:06:22 -0500 Message-Id: <20191016200647.32050-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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. Only versatile has been tested (on QEMU). The rest is compiled only. A git branch is here[1]. Rob [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git pci-ranges-cleanup-v2 Rob Herring (25): resource: Add a resource_list_get_entry_of_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 | 78 +++++----------- drivers/pci/controller/pci-host-common.c | 2 +- drivers/pci/controller/pci-v3-semi.c | 74 +++++---------- drivers/pci/controller/pci-versatile.c | 70 +++------------ drivers/pci/controller/pci-xgene.c | 72 +++++---------- 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 | 81 ++++------------- 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 | 2 + include/linux/resource_ext.h | 12 +++ 23 files changed, 253 insertions(+), 596 deletions(-) --- 2.20.1