From patchwork Mon Aug 8 13:05:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 9268319 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 38B6160871 for ; Mon, 8 Aug 2016 13:06:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25791283F0 for ; Mon, 8 Aug 2016 13:06:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A2E9283E4; Mon, 8 Aug 2016 13:06:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA23E283E4 for ; Mon, 8 Aug 2016 13:06:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbcHHNGj (ORCPT ); Mon, 8 Aug 2016 09:06:39 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35571 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbcHHNGG (ORCPT ); Mon, 8 Aug 2016 09:06:06 -0400 Received: by mail-wm0-f43.google.com with SMTP id f65so117078354wmi.0 for ; Mon, 08 Aug 2016 06:06:05 -0700 (PDT) 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=4NEydwGjoZhnNs7+5yHG6RkmVa0A7zENnLnhZ14rIE0=; b=Ot9fzdP25V2t3cTMyu7w6NhN1mqeFhUUPObx638zG7+dhQphLZ2tMd3xNnRt0AJmGD 6+E5DUvdjIXMJrPDzjyLud6oBYrR//33/7IpmvkF9Dglqc0Pp8OJizU++fRHpbd7o5QQ zYKPCCLRiAPipa3ieUBMfd6nZOy0+ZDj8gLDK7yPaXP1B7sh76+LtULM1KPfxST2tg34 R/RlQRmSMI3cOVV79HURkBh9BZa7FkJHKrJuOdRJKge0AlNFa+BQOCq6g4FnreKjFWWl 0Q2Yj2dZszPTyMYNKWFTCQmmu9sMSq++ltO/Tb6+3HA+oKSZ1Cqcq20oqyj1jgGtV2Ms 1kCw== 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=4NEydwGjoZhnNs7+5yHG6RkmVa0A7zENnLnhZ14rIE0=; b=c2d08SEPkAjurtvrAXAxG7pUS/kpWG22uKkrFoVPi2Az8Z9NQyHOkz0q/eVzNFBenL cfxd12u10eCpXSZDwzOQWMDam2MdWSFq7ORbc5OMYu3vEXykncNboWRdHNa71tc8GxGz 4yq1xpKSNg7UbvBZ3DzFQx0jU4p7FiJ3hZioDqpJgYFVvol9ZdO1jaomTgYcdeDrUaB+ J3LrLgTH9A53W2EFE+0W8wcHM06NOilq7ySHM/+40tLdegttQ9iSw69M7+va69z5gQD7 LaVIQ/AZ3QqTuTx51CILlcLUj1UYy+dkSLYL39nxFz/QAfF2KSIv9H6FlOrOqdSB+d3F nc5A== X-Gm-Message-State: AEkooutp9djxs9QwtT/vnQBSY+glpsoYQf4T1OZqpf4PLCqq9SNceioWRzg37FBsAKPp8A== X-Received: by 10.25.18.90 with SMTP id h87mr9872993lfi.118.1470661563977; Mon, 08 Aug 2016 06:06:03 -0700 (PDT) Received: from tn-HP-4.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id g11sm5644098lji.25.2016.08.08.06.06.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 06:06:03 -0700 (PDT) From: Tomasz Nowicki To: helgaas@kernel.org, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rafael@kernel.org, Lorenzo.Pieralisi@arm.com Cc: hanjun.guo@linaro.org, okaya@codeaurora.org, jchandra@broadcom.com, cov@codeaurora.org, dhdang@apm.com, ard.biesheuvel@linaro.org, robert.richter@caviumnetworks.com, mw@semihalf.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, wangyijing@huawei.com, msalter@redhat.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-acpi@lists.linaro.org, jcm@redhat.com, andrea.gallo@linaro.org, jeremy.linton@arm.com, liudongdong3@huawei.com, gabriele.paoloni@huawei.com, jhugo@codeaurora.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Nowicki Subject: [RFC PATCH V5 4/5] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller Date: Mon, 8 Aug 2016 15:05:40 +0200 Message-Id: <1470661541-26270-5-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470661541-26270-1-git-send-email-tn@semihalf.com> References: <1470661541-26270-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-Virus-Scanned: ClamAV using ClamSMTP Since there are platforms which have non-compliant ECAM space we need to override these accessors prior to PCI buses enumeration. In order to do that we call pci_mcfg_match_quirks() to retrieve custom pci_config_window structure. If no correlated quirk on list, use fully ECAM compliant generic PCI config accessors. Signed-off-by: Tomasz Nowicki --- arch/arm64/kernel/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 2e7bed4..aa734bd 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -139,8 +139,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) if (!ri) return NULL; - ri->cfg = pci_acpi_setup_ecam_mapping(root, - &pci_generic_ecam_ops.pci_ops); + ri->cfg = pci_mcfg_match_quirks(root); if (!ri->cfg) { kfree(ri); return NULL;