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: 8326031 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 483369F38B for ; Tue, 16 Feb 2016 13:56:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFA2B20263 for ; Tue, 16 Feb 2016 13:56:41 +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 073C720268 for ; Tue, 16 Feb 2016 13:56:41 +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 1aVg5x-00033t-Ag; Tue, 16 Feb 2016 13:55:13 +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 1aVg55-0002AY-Gq for linux-arm-kernel@lists.infradead.org; Tue, 16 Feb 2016 13:54:25 +0000 Received: by mail-wm0-x22e.google.com with SMTP id g62so108497433wme.1 for ; Tue, 16 Feb 2016 05:53:59 -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=E8SvIlYQPnkoTfLPoxiK3wLb/J6Bp6fVUkaHTzUdh3O8XVRUWiM3zPOu/JKAH4A+i/ E39rVD20Ji7nUrTVG8sq3JqqBalaqHzCO4fEWcxF3mlkRemii2mORJ68KsBLDBhq5w0X IUPzfeF0+XY8vm+VsxokFn4Xcb80X2Mcb/1/27VkxourCKOr2KNottoIJwSeOIAMbsj/ NX1uZhTHnhHAegvVvPxnHICSVQDlLNw4JM7bUrqke4mXXmyg+v/pJ9nD8Qm1zysv6msP tC+RDHNsrySCJo+igWE3hwx1S93BCQEjEcrjxF8LCh2LyTkm3Bly/Y68C+MV7ptVlBua EHvA== X-Gm-Message-State: AG10YOSOikuJ+4KBXXd1WNKb7zUzgvLBgDhVniZ23oKryhX1RVxC2gK0L4yGNdOrNnG0Gg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160216_055419_892763_0B482564 X-CRM114-Status: GOOD ( 10.32 ) 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: 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.1 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 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)