From patchwork Fri Oct 9 16:57:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 54727 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 90F6422FFC for ; Fri, 9 Oct 2015 16:59:11 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf32190580wic.3 for ; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=jsEnhCPJvg5j4xWVprmDWph3xcsvyC5179hF8KHpFVU=; b=nK7to/IeX556Otlt7w41KcOLqaIA4Pf9l8D8FOrObKjdfXB9GaQPMjbUfrPuqxiPLu nt997IZ4+pNffhY2TxLkeAxyfQhtw5qRXLgeWP2OMbu8OK8xROluVDyss1WuAw0fQoC0 GrBHULOQCMoFoK5g7jY4PKQ2M9J5LhaTp46oWHZ4rUTHwTWKfW4yk0mOpQ6CKEfEByhX Li2dRAM3PwDuwXurzSMBkM4IUpa07rZEHSobt7wmUKeEImzcZlHPzuFTd9SJ3o/PkTUa LqhLZ/Ij1xHtQY+8lE/zgiP1w1ttNWLOSIFDWL4i6f5YnOFRJAGxn0FV+8nzSEJf00Ei R3yw== X-Gm-Message-State: ALoCoQmWzmpiQqrTRvcohMfQa8r0s+FodCbetI04zWc+0F4f2+Hsq5Td2qM6jcEXs2Rf3rZJhYqP X-Received: by 10.180.9.104 with SMTP id y8mr51218wia.7.1444409950795; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.90.85 with SMTP id o82ls287743lfb.98.gmail; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) X-Received: by 10.112.173.198 with SMTP id bm6mr7031166lbc.43.1444409950645; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id c19si1860807lfc.86.2015.10.09.09.59.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 09:59:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbcao8 with SMTP id ao8so88221526lbc.3 for ; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) X-Received: by 10.112.199.170 with SMTP id jl10mr1523901lbc.88.1444409950523; Fri, 09 Oct 2015 09:59:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp103285lbq; Fri, 9 Oct 2015 09:59:09 -0700 (PDT) X-Received: by 10.66.229.67 with SMTP id so3mr16707446pac.66.1444409948825; Fri, 09 Oct 2015 09:59:08 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ry7si3830769pbb.204.2015.10.09.09.59.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 09:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; 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 1Zkazd-0000of-PJ; Fri, 09 Oct 2015 16:58:05 +0000 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140] helo=cam-smtp0.cambridge.arm.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zkaza-0000gp-2p for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2015 16:58:03 +0000 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.2.131.158]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id t99GvT8O006272; Fri, 9 Oct 2015 17:57:29 +0100 From: Liviu Dudau To: Will Deacon , Catalin Marinas , Bjorn Helgaas , Mark Rutland , Linus Walleij , Robin Murphy , Rob Herring , Ian Campbell , Kumar Gala , Arnd Bergmann , Jon Medhurst Subject: [PATCH v2 2/5] PCI: Add quirk for PLDA's XpressRICH3 host bridge class. Date: Fri, 9 Oct 2015 17:57:26 +0100 Message-Id: <1444409849-5685-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444409849-5685-1-git-send-email-Liviu.Dudau@arm.com> References: <1444409849-5685-1-git-send-email-Liviu.Dudau@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151009_095802_472563_CF93D45E X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [217.140.96.140 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: linux-pci , LKML , LAKML , device-tree MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: liviu.dudau@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The XpressRICH3 host bridge at power up has an unassigned class on some of ARM Ltd boards, add a quirk to correct that. Signed-off-by: Liviu Dudau --- drivers/pci/quirks.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index b03373f..ae24bb4 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4149,3 +4149,13 @@ static void quirk_intel_qat_vf_cap(struct pci_dev *pdev) } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x443, quirk_intel_qat_vf_cap); + +/* + * The PLDA's XpressRICH3 doesn't describe itself as a bridge. This is required + * for correct/normal enumeration. + */ +static void xr3pci_quirk_class(struct pci_dev *pdev) +{ + pdev->class = PCI_CLASS_BRIDGE_PCI << 8; +} +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLDA, PCI_DEVICE_ID_XR3PCI, xr3pci_quirk_class);