From patchwork Wed Dec 16 15:16:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 7863131 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 DB9779F387 for ; Wed, 16 Dec 2015 15:32:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D48EB20382 for ; Wed, 16 Dec 2015 15:32:02 +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 080452037F for ; Wed, 16 Dec 2015 15:32:02 +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 1a9E1x-00056T-V3; Wed, 16 Dec 2015 15:30:17 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9Dqj-0000qj-RC for linux-arm-kernel@lists.infradead.org; Wed, 16 Dec 2015 15:18:49 +0000 Received: by mail-wm0-x22f.google.com with SMTP id p187so5679785wmp.1 for ; Wed, 16 Dec 2015 07:18: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=lGobGqtyvnSzJsyQvPEKcXwVd0CN86eVcKmVQRcBgOM=; b=FmpgRcX4QjQR6sxdOvHNKdLjFkEqoT/1r6hQKkvtwkZ7BePQoCnsON4X2uFy0Lj6Qo yItXOir2ZWq2UlbZ93Sdb8qMMqUfERntuSfKDhwbjPbWJ4tWPONfcbnhuLxCo7LGT/LS 7ZcFYWf8SDBiUmtO+EBvGN5n5LUiBlznS5v1Oqk+LnywJLAnfJl245y6AQRIcp4Y6nvN 36LACjVVjO/488n4RCqhQGDzkXYLk0wXXQEXP4/q4mecZaAY0Zhs6RACtJVlCIutXhYa etBXXs8Drsp8dQ94uc4vf1Mbj9Kc99q1iYlR4cE38Ls3Xa/6thxaDryHkekSaatuJg6T 6jLw== 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=lGobGqtyvnSzJsyQvPEKcXwVd0CN86eVcKmVQRcBgOM=; b=U7xCwecOx6BYVYQc9QXlK0td7K6ZXU2VDq74/svE4gB53EIXH8RRlUajqe6fmCt4FE btyTiIQMwjyA8aNG328MRKRRjlxWH6B1G+MvUCTtgVM9t3xbXKLapPRRPBgu203x9Gnq bgY79Hw7hQSNK26rM/fxjDZDGRXvN2u9Fp/hI2FBLORc1PNe11Aqxs9mPuD5w1idBQ1L B+5475Q/6spnUfs80BEp8VHsQnfNjgjWMWoyAOcLrgruCxNJpiM9hYNZPx1WeG8y2uVy IreaUxBgt9TMQvu+Ao4EL7H48XuXX/cfQS51p1yJozseWddJUKyBFgUEoD+CSFlj4bGN X2BQ== X-Gm-Message-State: ALoCoQlXOgI6G5nDo2d4fyQCJ+1jINIxNmP67ZNSmRDSqr6FV3p5Tc2H6cHSLmnRsLHE3aRYxg4pPQXDC2GNs9Fpmq3eyxHCsg== X-Received: by 10.194.11.66 with SMTP id o2mr25232385wjb.103.1450279100930; Wed, 16 Dec 2015 07:18:20 -0800 (PST) Received: from tn-HP-4.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id z17sm6438761wjq.1.2015.12.16.07.18.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Dec 2015 07:18:20 -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 V2 23/23] arm64, pci, acpi: Start using ACPI based PCI host bridge driver for ARM64. Date: Wed, 16 Dec 2015 16:16:33 +0100 Message-Id: <1450278993-12664-24-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450278993-12664-1-git-send-email-tn@semihalf.com> References: <1450278993-12664-1-git-send-email-tn@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151216_071842_332934_B643DE91 X-CRM114-Status: GOOD ( 11.24 ) 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 , tglx@linutronix.de, 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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 --- arch/arm64/Kconfig | 4 ++++ arch/arm64/kernel/pci.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index d65d315..71032ed 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -86,6 +86,7 @@ config ARM64 select OF_EARLY_FLATTREE select OF_RESERVED_MEM select PERF_USE_VMALLOC + select PCI_HOST_GENERIC_ACPI if ACPI select POWER_RESET select POWER_SUPPLY select RTC_LIB @@ -213,6 +214,9 @@ config PCI_MMCONFIG select PCI_ECAM depends on ACPI +config ARCH_PCI_HOST_GENERIC_ACPI + def_bool ACPI + endmenu menu "Kernel Features" diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index f7948f5..e9cf58b 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -10,7 +10,6 @@ * */ -#include #include #include #include @@ -50,12 +49,3 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) return pci_enable_resources(dev, mask); } - -#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