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=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 72332C47258 for ; Fri, 1 May 2020 15:38:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 49AE224958 for ; Fri, 1 May 2020 15:38:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Fis/svCV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49AE224958 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+vSOgINWut2kAGm33GYhYB1VX6MJXH0nCAdcJjZMVh8=; b=Fis/svCVWC6sbe S30APv9OoqCbH9yNcxD39l5+p/n0wKgeRytbdQ2t52XD6y1jGzhXEUx0lzd5t93ChUdotS5MqMRnL 42TOFFKqQ/8gpf6sKxBECOirSzEAypX3XeMiiHs4uo9C8DOHr0b8HjSatB/kvHh7J84fdljqtxTZa dBXrVOmXHYg8Gs+8stOR4TyPUjENws8MjqFMzp+NQggmzOSDiurmCUFbeWyj/5Ev6bu/Z59xt/z6s txo8ka/Cf/UPCzMawcXxEXLWMwLBVSs3GGbucPgW1+rK2mJTIAW1FIZCeKeTBnqjO35/HH1ar2zjs O7KmhA3O0gc70lbmWlIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUXkN-0007ui-KD; Fri, 01 May 2020 15:38:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUXkJ-0007sm-Nv for linux-arm-kernel@lists.infradead.org; Fri, 01 May 2020 15:38:37 +0000 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 0FD7A30E; Fri, 1 May 2020 08:38:35 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 140BF3F68F; Fri, 1 May 2020 08:38:32 -0700 (PDT) Date: Fri, 1 May 2020 16:38:30 +0100 From: Lorenzo Pieralisi To: Rob Herring Subject: Re: [PATCH 0/3] PCI: Modularize host-generic Message-ID: <20200501153830.GD7398@e121166-lin.cambridge.arm.com> References: <20200409234923.21598-1-robh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200409234923.21598-1-robh@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200501_083835_824335_3852E8D6 X-CRM114-Status: GOOD ( 15.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mans Rullgard , Marc Gonzalez , linux-pci@vger.kernel.org, Catalin Marinas , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, Zhou Wang , Robert Richter , Jonathan Chocron , Bjorn Helgaas , Toan Le , Len Brown , Will Deacon , linux-arm-kernel@lists.infradead.org, Andrew Murray Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 09, 2020 at 05:49:20PM -0600, Rob Herring wrote: > This is part of a larger effort to modularize ARCH_VEXPRESS. In > particular, the Arm FVP platforms use the host-generic driver. This > conversion was straight-forward. I didn't convert the other ECAM drivers > using host-common to modules, but am happy to do so if there's a strong > desire to do so. > > In the process, I noticed that 'const' was being dropped from the match > table .data pointer, so the first patch constifies struct pci_ecam_ops. > I started trying to constify pci_ops too, but that became a never ending > treewide rabbit hole. So I ended up with a cast when we assign pci_ops > from pci_ecam_ops. > > Rob > > > Rob Herring (3): > PCI: Constify struct pci_ecam_ops > PCI: host-generic: Support building as modules > PCI: host-generic: Eliminate pci_host_common_probe wrappers > > arch/arm64/kernel/pci.c | 4 ++-- > drivers/acpi/pci_mcfg.c | 8 +++---- > drivers/pci/controller/Kconfig | 4 ++-- > drivers/pci/controller/dwc/pcie-al.c | 2 +- > drivers/pci/controller/dwc/pcie-hisi.c | 19 +++++------------ > drivers/pci/controller/pci-host-common.c | 18 ++++++++++++---- > drivers/pci/controller/pci-host-generic.c | 26 +++++++---------------- > drivers/pci/controller/pci-thunder-ecam.c | 14 ++++++------ > drivers/pci/controller/pci-thunder-pem.c | 16 ++++++-------- > drivers/pci/controller/pci-xgene.c | 4 ++-- > drivers/pci/controller/pcie-tango.c | 9 +++++--- > drivers/pci/ecam.c | 10 ++++++--- > drivers/pci/setup-bus.c | 1 + > include/linux/pci-acpi.h | 2 +- > include/linux/pci-ecam.h | 25 +++++++++++----------- > 15 files changed, 78 insertions(+), 84 deletions(-) Applied to pci/host-generic for v5.8, thanks ! Lorenzo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel