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: 9268313 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 931F3607D6 for ; Mon, 8 Aug 2016 13:06:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85C23283EC for ; Mon, 8 Aug 2016 13:06:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A48C283EE; Mon, 8 Aug 2016 13:06:37 +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=ham 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 0150F283ED for ; Mon, 8 Aug 2016 13:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932167AbcHHNGI (ORCPT ); Mon, 8 Aug 2016 09:06:08 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:35570 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433AbcHHNGF (ORCPT ); Mon, 8 Aug 2016 09:06:05 -0400 Received: by mail-wm0-f52.google.com with SMTP id f65so117078348wmi.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=JDBlJ/hD68v9+WeavvCcpZ7VzlDQC/3VCOZDV3xrB8lT4Kfi1ngaAQ7nF8EAKHeBlF 6bDYd1gCnxRU3fxK4J/Uy2n/UygJjrf4bmV25MFcDK3Pvt71jqR0IEv8DIGJbuIlfQKA Yyhl/yLIF9IHTXiYGkKDo37BFbJxvkoes/EWKki97JO8ynnTBckfpbCqEOT8I3BNma1l 2qJF6wXz/KdIRSaL3MHoHOrZ3ZRTsyo0/sXZhVu6xHK5X2Pi2lI0dIpPtQrKtjMoVbgY 7vVjEsriffRwdjLYEZsMbibgOksdu1Fb2JIweAPzAwWWBF53MAIVnq6l8mr6p9ImUOTR U2vA== X-Gm-Message-State: AEkoouuQPPimy1vgjznjOpi043hlNH8/WfTVO57Og6dPmX2tatNX+VzvBII2w2bQhuedCA== 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-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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;