From patchwork Tue Feb 16 13:53:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 8325981 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7EAF3C02AA for ; Tue, 16 Feb 2016 13:56:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7DA3E20268 for ; Tue, 16 Feb 2016 13:56:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 815D420263 for ; Tue, 16 Feb 2016 13:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932326AbcBPNzY (ORCPT ); Tue, 16 Feb 2016 08:55:24 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:33389 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932629AbcBPNyW (ORCPT ); Tue, 16 Feb 2016 08:54:22 -0500 Received: by mail-wm0-f42.google.com with SMTP id g62so192689941wme.0 for ; Tue, 16 Feb 2016 05:54:22 -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=ifi46dF6ShlNyyKMwhRwCNK+APdTY+7dGl5zEJGdFCM=; b=oMKw1M8Z/FEC7jqjhW2c9Uc0lXPYjoN+a8tbBv+V8fTetqqJm0+hoMD7ILjfMUCLCQ FfgcSGrRV/Af7qk91qT2mfMBq/oiYnSUNTZslH1RfeU3mvnHVbGguWtQIWyHXfrj9tNB WB1t2F+7RBtesrVU0EJazWq1HNzoNIAA6L4KSAbfieq2TYOlTHBdLSn5SYwzJ1I6y+iK kFK5ADepxa0snIKpi925bmkCtbiigmJoD44ffKpTKDIMksTos+cumoQhoSyfFNoI+tQw EczzPyO5h1bvx5h0l4fUNCxMKgkmQi2ok0cJnNCNmauEPZjyWRVxCIFPRkDwL8ZXAqxK E3sA== 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=ifi46dF6ShlNyyKMwhRwCNK+APdTY+7dGl5zEJGdFCM=; b=KaEfalU14smyxri8eN7aCFt3Sjq158NQzcYseOk4dlIeWYNqUODStQLysWggdc2QYv cCn5fHwHYh/rKQ7UOJ8LjVNeL6OJRkx87zo9EzUoPP69ri9yWFI5CdR6GP6jK1da3Q6N daB0EuHVghiEGqNYrOb6wuDxJ+LIAENtN7sRLqkKOdAhBZF4EO9oJSIBObaklhkWaq01 Uc31eoDPN53IwIrQCHQh9TvPMmTpP8nx/Y+eeTD+7nSbDFT7fCVU9i3/oFJ9Mmur9PmA 4IRfa6bSh9/w6XgPcJzLO58CAZEYXqlMLeL5xWYWINJQqTWX/EAxEg10wOlj6CoJVcOI mpTw== X-Gm-Message-State: AG10YORNbeqr4z2c9rXbz6QcwV8h8YY/aZmLXEyC2EWRvARXLJcaaN06vsjnkq06wyAlXw== X-Received: by 10.28.182.136 with SMTP id g130mr19628478wmf.10.1455630861446; Tue, 16 Feb 2016 05:54:21 -0800 (PST) Received: from tn-HP-4.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id q129sm20833462wmd.14.2016.02.16.05.54.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Feb 2016 05:54:20 -0800 (PST) From: Tomasz Nowicki To: helgaas@kernel.org, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rafael@kernel.org, hanjun.guo@linaro.org, Lorenzo.Pieralisi@arm.com, okaya@codeaurora.org, jiang.liu@linux.intel.com, jchandra@broadcom.com, Stefano.Stabellini@eu.citrix.com Cc: robert.richter@caviumnetworks.com, mw@semihalf.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, wangyijing@huawei.com, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, jcm@redhat.com, Tomasz Nowicki Subject: [PATCH V5 15/15] arm64, pci, acpi: Start using ACPI based PCI host bridge driver for ARM64. Date: Tue, 16 Feb 2016 14:53:45 +0100 Message-Id: <1455630825-27253-16-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455630825-27253-1-git-send-email-tn@semihalf.com> References: <1455630825-27253-1-git-send-email-tn@semihalf.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 It is perfectly fine to use ACPI_PCI_HOST_GENERIC for ARM64, so lets get rid of PCI init empty stub, related ACPI header and go with full-blown PCI host controller driver. Signed-off-by: Tomasz Nowicki TO: Catalin Marinas TO: Lorenzo Pieralisi TO: Will Deacon TO: Arnd Bergmann CC: Liviu Dudau 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 552e996..09c49ea 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 6e77e1b..1de0168 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -65,12 +65,3 @@ int pcibios_alloc_irq(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