Message ID | 1470661002-26213-5-git-send-email-tn@semihalf.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 8780860754 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 13:00:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77B0A27FA9 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 13:00:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6711C2838D; Mon, 8 Aug 2016 13:00:02 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 2706027FA9 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 8 Aug 2016 13:00:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWk8Z-0003Vt-MA; Mon, 08 Aug 2016 12:58:35 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWk7k-000362-9p for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2016 12:57:45 +0000 Received: by mail-wm0-x231.google.com with SMTP id i5so137485613wmg.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 08 Aug 2016 05:57:23 -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=CrvI6jZr6uzkWDclZyQCRfmWGf4yOQRLhiwipz9+Kbl3r73YEh6LIDke2Kk11w1NTg I4pFYd9GP6X6/96x1DJu9EmCOHXI3fu6z/P92m8icjzPGlt2m+68v8gbd8ufzL8YXo8t OxmQ2m8w758fvQetr+Da/pR1kedmR7WLRRL63X9q0+EvfnBWYaKK9ASDS37fxHwTjZIi cn61VfaJ+GSxgMG7b3i4eEw6inhzwzYtEHypj8U/yP61T7fvt76IwkAeBq+yf836e8Oy Ft8znDmnshNAfig0HJ8JsyPADTkIi82S9bloUF+CQIIVTAKRedbohG3qJy3JbngPOPgd XN0Q== 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=fkmNPjM0YXwuSZH2qSVI+jQn+fNl0oXVwo1he0p/iqHYaceKhQzlyr4Hid1b8TDKCZ crrrz0/P4/M8RtaXq6nENpEElkBGGRSa5yBGNaTVGfyzN1C2yNyyP5H9AGKY91Wz2dl/ jX5sMDRthSnv8xDv33h7f0GqXYJNJxTLFVwCRmHNocKc4rlt8j1Hg023lycs0O9x7dX6 K9xYrILB7p6DMZYLF1JE/esMj0T4EiLrWC+5ZH6s8u/bu3CF05eDDJwwHhKMSHwdcFGf cx3hlDvL576rMNTd8n8lDYc1UecPXb96tossfHDBjpMyEt8tqeCn5MGYafvaxbUyTSyy gjzQ== X-Gm-Message-State: AEkoouv8VcPqn7ZtK9oFDBfxlCEjbRt0AVJpraNpiX5YVhRf5NWoRNmCoFGg5OhEScilqg== X-Received: by 10.46.33.5 with SMTP id h5mr26062704ljh.43.1470661042265; Mon, 08 Aug 2016 05:57:22 -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 k63sm5708186lfe.48.2016.08.08.05.57.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Aug 2016 05:57:21 -0700 (PDT) From: Tomasz Nowicki <tn@semihalf.com> To: helgaas@kernel.org, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rafael@kernel.org, Lorenzo.Pieralisi@arm.com Subject: [RFC PATCH V5 4/5] ARM64/PCI: Start using quirks handling for ACPI based PCI host controller Date: Mon, 8 Aug 2016 14:56:41 +0200 Message-Id: <1470661002-26213-5-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470661002-26213-1-git-send-email-tn@semihalf.com> References: <1470661002-26213-1-git-send-email-tn@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160808_055744_584629_A9DBBE07 X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: gabriele.paoloni@huawei.com, linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, Liviu.Dudau@arm.com, okaya@codeaurora.org, wangyijing@huawei.com, andrea.gallo@linaro.org, jhugo@codeaurora.org, Tomasz Nowicki <tn@semihalf.com>, ddaney@caviumnetworks.com, robert.richter@caviumnetworks.com, liudongdong3@huawei.com, msalter@redhat.com, jcm@redhat.com, cov@codeaurora.org, mw@semihalf.com, linux-arm-kernel@lists.infradead.org, jchandra@broadcom.com, ard.biesheuvel@linaro.org, dhdang@apm.com, jeremy.linton@arm.com, hanjun.guo@linaro.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;
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 <tn@semihalf.com> --- arch/arm64/kernel/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)