From patchwork Thu Feb 4 17:29:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 8226631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 48EB79F37A for ; Thu, 4 Feb 2016 17:42:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E121D2039D for ; Thu, 4 Feb 2016 17:42:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0886620395 for ; Thu, 4 Feb 2016 17:42:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRNtt-0003rM-Sn; Thu, 04 Feb 2016 17:41:02 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRNjN-00072E-K4 for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2016 17:30:15 +0000 Received: by mail-wm0-x22e.google.com with SMTP id p63so222680645wmp.1 for ; Thu, 04 Feb 2016 09:29:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ojBlANUQHYZ8aqnsXu9kvj/6GY+pQv2gJY/3obstrtE=; b=m8oe6oOb8OPmes7tAm3yrC3OhD3i9c2aAx714emq3aeK9WcXJ1IeizyWJNgyA3VzYV 7oHBqrWTpylhS3PWpqdElc0x6DXL4zY00w93r3bLRdfkCONri/1srZDr2noYjAO5e95a 4AraiyaD4VcD3Oa9WXzDaMm3GPre/c95EoTMVk8S6ZfPlgB/eJwfRpj30nvYFjFFspUD QDTcilSW16mRU/hCi7gMmr2XBNqnA4cjEqekc+Jjw5wtwzc21cyKE4c/quCKVNI3/sty rrhvxCcxMrnUYOKXGEvAifmv9gBfpd0/frucm/o1LzKuDfVmoKctLXtqe33e6UC2ph0M 1Y7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ojBlANUQHYZ8aqnsXu9kvj/6GY+pQv2gJY/3obstrtE=; b=IThr8dtlK3eR74NWEFRo21oBNNWLUf2RXqDLmDu+jpfq5MeYcDSPMF/lxhf5hkpH9u 5uvGwbaOM2dj2yVhpmL+kJTSwhVIZifKLqL80IhbMs/3aDMnbJ8dwlzBFqiGU5gpibPY fq7k44U9D9Yp1BlgIqhvVdqGAhgOjxTsPnl+MYjfkbHefObHW9obxbQCi6cKPAY8GHMg toEJ0iREft6Qj8g9xF/4gGkj3RaY10j3FL4+egR10B0BZbeHTo8TAGGXyL1ydwUFZc3D Ydo312kg3u2HpkT0nDMSl/bq3VwEoaS2io2QL3XnYQzHVXmNJFL5LdAt5giCgNvcZDPG SuAA== X-Gm-Message-State: AG10YOT2MxKRaseEPYCv70htdhYkg1/4MEMGyHw5vIOumxxUg8Ys6WSodGjZEhDCx/gcpw== X-Received: by 10.194.176.170 with SMTP id cj10mr9509129wjc.165.1454606988340; Thu, 04 Feb 2016 09:29:48 -0800 (PST) Received: from tn-HP-4.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id w8sm12238889wjx.21.2016.02.04.09.29.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 09:29:47 -0800 (PST) From: Tomasz Nowicki To: bhelgaas@google.com, arnd@arndb.de, 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 Subject: [PATCH V4 23/23] arm64, pci, acpi: Start using ACPI based PCI host bridge driver for ARM64. Date: Thu, 4 Feb 2016 18:29:01 +0100 Message-Id: <1454606941-9523-24-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454606941-9523-1-git-send-email-tn@semihalf.com> References: <1454606941-9523-1-git-send-email-tn@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160204_093010_180698_2D5FFAF4 X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 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, Tomasz Nowicki , mw@semihalf.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lets get rid of empty PCI init stub, related ACPI header and go with full-blown PCI host bridge driver. Signed-off-by: Tomasz Nowicki CC: Arnd Bergmann CC: Catalin Marinas CC: Liviu Dudau CC: Lorenzo Pieralisi CC: Will Deacon Tested-by: Duc Dang Tested-by: Dongdong Liu Tested-by: Hanjun Guo Tested-by: Graeme Gregory Tested-by: Sinan Kaya --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/pci.c | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4f45ea4..567523b 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -2,6 +2,7 @@ config ARM64 def_bool y select ACPI_CCA_REQUIRED if ACPI select ACPI_GENERIC_GSI if ACPI + select ACPI_PCI_HOST_GENERIC if ACPI select ACPI_REDUCED_HARDWARE_ONLY if ACPI select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index d1a701f..0b53262 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -70,12 +70,3 @@ int pcibios_add_device(struct pci_dev *dev) return 0; } - -#ifdef CONFIG_ACPI -/* Root bridge scanning */ -struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) -{ - /* TODO: Should be revisited when implementing PCI on ACPI */ - return NULL; -} -#endif