Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753543AbbLRMmT (ORCPT ); Fri, 18 Dec 2015 07:42:19 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:62093 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753503AbbLRMmP (ORCPT ); Fri, 18 Dec 2015 07:42:15 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Tomasz Nowicki , bhelgaas@google.com, will.deacon@arm.com, catalin.marinas@arm.com, rjw@rjwysocki.net, hanjun.guo@linaro.org, Lorenzo.Pieralisi@arm.com, okaya@codeaurora.org, jiang.liu@linux.intel.com, Stefano.Stabellini@eu.citrix.com, jchandra@broadcom.com, jcm@redhat.com, linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, robert.richter@caviumnetworks.com, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, wangyijing@huawei.com, tglx@linutronix.de, mw@semihalf.com Subject: Re: [PATCH V2 21/23] pci, acpi: Support for ACPI based PCI hostbridge init Date: Fri, 18 Dec 2015 13:40:50 +0100 Message-ID: <2277339.U6fWlSIDzy@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1450278993-12664-22-git-send-email-tn@semihalf.com> References: <1450278993-12664-1-git-send-email-tn@semihalf.com> <1450278993-12664-22-git-send-email-tn@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:pDh+ah79UwDoa7eTwPWIrOI/BtHlgw6besjgbKotiCdtE8niDlJ nX7oymGYOEzrh8IPWCZUnb/XqdV4jrXaGV+RYDo/vI2y2mYVWA2T2Ui9yHO148U0Uq0P3TR 1PYEFp2VLWaxbosttSEP7rvwenRTsM7EvuYOiOBxk8WkrmL5VQEhUGUepeL9X4/a5/Qaxmp 3E41xi8+P9sTjnMZmsuQA== X-UI-Out-Filterresults: notjunk:1;V01:K0:kJ2lh9EVPlw=:pmUhV7pa61LDW6gz8nJCjw C8xM37yfsb6BanriOAStks49DRLjUPyPsioKH29Roks9SwHvgDUNwOZzShUN1CN24lV3Q+XAB B8zT5n4Mke+dnvYcDPLzB00Cd/qJ1t7rq/ri/xNxxMAjw8Kkh4gh3oce6jT7XxD6g6ktYi6l6 pBWtE6h65caeIdfYg7UpV0BnGbQHrW1v3qOJxn3U1QH/Y9qr8lecE00D9XroZuhp6gbWo0exR ZdFCimL/vOAo66X/4D3jSIALuk7u0GwEIX/WAr0PZJTy8FQxAjVXk1nJzXRKP+jb47hHyf97h 2P+QJqv1t2PbQOC6vhUE8r047oBX1d9WNvsa9eXl3HJ3nY+wlbFnkNc6DvlKPqNePALlbCdi5 L1OzH/+SwLFBwFrupCEHAGry0I7agrtTulgkNsJPeOGaZ2KISH6appSRdNkeT1DkSuROUPMYF oWDO3npx5l29/5/vSHaJQ07K32ZRcJw5el2wZKthi6k3UEs65n8bH6rHms47FzrDU7e+F2ZgU JAcAitIK9xjjCZL+0rSRiVnNo0v9/fVmbiXV72hWAuwqG5ooWAhpo4daFSXAkDJ1DTxka9OJG c7JIKRmafYuoj8/X5Ar0XyWJhj08X44oE6GGJEt7bnUF3HuHM+dedP6k3p6Fq8NMYPoI3N6Ht eCyqhPMl+MeQDPgm+w93hWPcAkL9x5Ek/Fo5m7ohgmf2zaKGK3NrxAEa2gohaGgGAxLIQYEGi BXRpqpqzLAnHj5Xt Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 39 On Wednesday 16 December 2015 16:16:31 Tomasz Nowicki wrote: > Because of two patch series: > 1. Jiang Liu's common interface to support PCI host bridge init > 2. MMCONFIG refactoring (part of this patch set) > now we can think about generic ACPI based PCI host bridge driver > out of arch/ directory. > > This driver use information from MCFG table (PCI config space regions) > and _CRS method (IO/irq resources) to initialize PCI hostbridge. > > TBD: We are still not sure whether we should reassign resources > after PCI bus enumeration or trust firmware to do all that work for > us properly. > > Signed-off-by: Tomasz Nowicki > Signed-off-by: Hanjun Guo > Signed-off-by: Suravee Suthikulpanit > CC: Arnd Bergmann > CC: Catalin Marinas > CC: Liviu Dudau > CC: Lorenzo Pieralisi > CC: Will Deacon > Tested-by: Suravee Suthikulpanit > I think this code could better live in drivers/acpi/pci_root.c along with all the related functions. It's not really a driver by itself and cannot be a loadable module or built on other architectures. You can put all the code inside an #ifdef ARCH_PCI_HOST_GENERIC_ACPI there. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/