From patchwork Fri Oct 9 13:45:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 54705 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 89E6922DB6 for ; Fri, 9 Oct 2015 13:46:22 +0000 (UTC) Received: by lbos8 with SMTP id s8sf38944571lbo.2 for ; Fri, 09 Oct 2015 06:46:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Dei65s2AGm3b56wK4RZOXUKnOpkvgd52+DtK4paggoQ=; b=NKV5JzlTi7j85q2VlC5qFU3qJvdq7ti75umKd47e33a7g+93VqSev8A/gvhe3B6hf+ kcctlAvLo2LqLkQ0B8OTTID+zxFqiAV2KMrzuZzCPfCfrD5NGZPZ8hZJE/8x05hJcIod NMTyNeIY6foIp2rhbePqgnA8LsHCH2x2oxYUgrzMfq0SNSSMU9DMbk+429sWVzMfjVn/ JPvFVVoFWrPmHJmDhHqgvvUTaMQWmJq9POwjX9uSka5yQMbzKIutcnhKn5CpOScB8cc5 VYAi7vNs8IgSKzsZIxTbVfmZ6mU6OpFMobjef1YVwbz5NJSB1kpLNUTvEn7nhAfO4b9h jWIw== X-Gm-Message-State: ALoCoQmFABAzhwecfGbmx7NQPc2t/h76ImJBaTNM0JWy0Q2VwYqT4exqlt3tLJgKSRTmHxAi2XV3 X-Received: by 10.112.158.202 with SMTP id ww10mr2672808lbb.13.1444398381158; Fri, 09 Oct 2015 06:46:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.213.82 with SMTP id m79ls318761lfg.19.gmail; Fri, 09 Oct 2015 06:46:20 -0700 (PDT) X-Received: by 10.25.161.136 with SMTP id k130mr4433424lfe.25.1444398380865; Fri, 09 Oct 2015 06:46:20 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id jk3si1290483lbc.29.2015.10.09.06.46.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 06:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbos8 with SMTP id s8so80643639lbo.0 for ; Fri, 09 Oct 2015 06:46:20 -0700 (PDT) X-Received: by 10.25.150.199 with SMTP id y190mr4465056lfd.35.1444398380477; Fri, 09 Oct 2015 06:46:20 -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 w3csp1221564lbq; Fri, 9 Oct 2015 06:46:19 -0700 (PDT) X-Received: by 10.68.139.72 with SMTP id qw8mr15229140pbb.60.1444398378826; Fri, 09 Oct 2015 06:46:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rz9si2779703pac.15.2015.10.09.06.46.18; Fri, 09 Oct 2015 06:46:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933103AbbJINqJ (ORCPT + 30 others); Fri, 9 Oct 2015 09:46:09 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:26511 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756133AbbJINqD (ORCPT ); Fri, 9 Oct 2015 09:46:03 -0400 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 t99DjNH8002667; Fri, 9 Oct 2015 14:45:23 +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 Cc: linux-pci , device-tree , LAKML , LKML Subject: [PATCH 2/4] PCI: Add quirk for PLDA's XpressRICH3 host bridge class. Date: Fri, 9 Oct 2015 14:45:21 +0100 Message-Id: <1444398323-17354-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444398323-17354-1-git-send-email-Liviu.Dudau@arm.com> References: <1444398323-17354-1-git-send-email-Liviu.Dudau@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.174 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);