From patchwork Tue Feb 16 13:53:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 8326301 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 3104A9F38B for ; Tue, 16 Feb 2016 13:59:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E0A120268 for ; Tue, 16 Feb 2016 13:59:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 652C420295 for ; Tue, 16 Feb 2016 13:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbcBPN7N (ORCPT ); Tue, 16 Feb 2016 08:59:13 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:34121 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932548AbcBPNx7 (ORCPT ); Tue, 16 Feb 2016 08:53:59 -0500 Received: by mail-wm0-f47.google.com with SMTP id b205so111054195wmb.1 for ; Tue, 16 Feb 2016 05:53:58 -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=EG//FzSLE2LbsDzCzp2s7PO3fGBVTO75hd1HZRygC68=; b=CxHYGegP2W0bn88TWJ4nBPqxCtwq0H5SAVsZ537EZCAntDMiyNFR4o598IdfiUL0q2 fz8B9ev8CDkmSVTx71AAc3t9/A9OZ+A1JB+zuqWYKjn0Dds64rcKUymAlYTKfAtU5Msp YhHf3xeKrphRAYeDq2JTJqrN23EfPrwWW3C22KxxaaGBtPnqKKw1VOwbuMV41dDqNzB2 6MRdByb0Fs82EjWz7KWUAf0L0Yg5acj03b4tYNLHLKkQapJmij18QjEGBq+Z3dN9hTP4 Vvz1sUxJSXgmWzADqWaE4st4KSOMjvMBHgfXB2945jJqLtyvraeEVgJxHSJWEdmFqXM4 0kkw== 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=EG//FzSLE2LbsDzCzp2s7PO3fGBVTO75hd1HZRygC68=; b=m90yUeReYmLG9ghQigEe/c9kFoevTL4YcUo1qWlJPIheTJTqLKzRWD5hBFpg5GABhI Vyf3DGTp3ae6/HLgejkbOU1cBBqZebMCUjJz6nqaayHWN3rnE8ZCxuZKudo8jLm5Hd6q Euq8G+u+iiVw+JTg+CBvgtB5fOyn0zjh2GB/LiL5NAseVN69nGHHSQDix6sy7/+seraU /Lp/pAE9bDVdglKC8aRIO/NTLuCiBbUi5ItfgI2ueoC3Vq0U/Eid3KUu31Cwg2HbQ0s+ FBT3bTkOJXvRH7QYc+ReuWC12gzYNU48UGxX+4eVCDTyUBP53467ZGGC3zXCMFk53Q8x 9dog== X-Gm-Message-State: AG10YOQu/wtsNDpVsNIlLVROL96apDpBZxYlKY745oaLx8iq5nAHq/SpJZBdm9pQkSxsGA== X-Received: by 10.28.12.80 with SMTP id 77mr19091064wmm.19.1455630837894; Tue, 16 Feb 2016 05:53:57 -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.53.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Feb 2016 05:53:57 -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 03/15] arm64, acpi: Use MCFG library and empty PCI config space accessors from pci_mcfg.c file. Date: Tue, 16 Feb 2016 14:53:33 +0100 Message-Id: <1455630825-27253-4-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 We can now enable MCFG library. Currently, there is no ARM64 use case for RAW pci config accessors, so lets use empty ones for now. At the same time, we can cleanup the old implementation of RAW accessors from arch/arm64/kernel/pci.c Signed-off-by: Tomasz Nowicki Tested-by: Suravee Suthikulpanit Tested-by: Jeremy Linton Tested-by: Duc Dang Tested-by: Dongdong Liu Tested-by: Hanjun Guo Tested-by: Graeme Gregory Tested-by: Sinan Kaya --- arch/arm64/Kconfig | 4 ++++ arch/arm64/kernel/pci.c | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8cc6228..552e996 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -238,6 +238,10 @@ source "drivers/pci/Kconfig" source "drivers/pci/pcie/Kconfig" source "drivers/pci/hotplug/Kconfig" +config PCI_MMCONFIG + def_bool y + depends on ACPI + endmenu menu "Kernel Features" diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index b3d098b..023b983 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -61,21 +61,6 @@ int pcibios_add_device(struct pci_dev *dev) return 0; } -/* - * raw_pci_read/write - Platform-specific PCI config space access. - */ -int raw_pci_read(unsigned int domain, unsigned int bus, - unsigned int devfn, int reg, int len, u32 *val) -{ - return -ENXIO; -} - -int raw_pci_write(unsigned int domain, unsigned int bus, - unsigned int devfn, int reg, int len, u32 val) -{ - return -ENXIO; -} - #ifdef CONFIG_ACPI /* Root bridge scanning */ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)