Message ID | 1444644459-2780-3-git-send-email-Liviu.Dudau@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCZ6BIVBZUDBBE4N52YAKGQEF5KZF3Y@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id BB93822DB6 for <linaro@patches.linaro.org>; Mon, 12 Oct 2015 10:08:20 +0000 (UTC) Received: by lbbpc3 with SMTP id pc3sf12839578lbb.2 for <linaro@patches.linaro.org>; Mon, 12 Oct 2015 03:08:19 -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=kHZokq2DQ3/Kuv3xaFdCXwPcFOl843trT4+k7/S6Mm4=; b=eF4PBaKAiqL+V2HU6fEN1Ud3hrBrMOHlHxt0J6d/Lud3L7WaNVpVmTufNdSWoOYjzg cUaakHza8GPtk+Kbqyb8pm0GYJWwCdLWo2xvi++1LZcHjP+KiMXZ2KTCUe2qjGJJxya2 uvdFm8b/IvdrRPETH+xTnvlVnfmOtG7fjsNXq62jG1EutSkZaUpDEXbW6NIhZegMGFEJ 61zXWA0ukGwEdlYowsXEqOCILlmK8+blg37yri0HMYvaWrT+AyvhSuTOPeagwT/IujNe IYG2VMO093XfojbSrZRpfueyuZEfZrIuaICME7h6F00bLTrQ6XUGKfuzfsCgiT2f8WwW ta5A== X-Gm-Message-State: ALoCoQnXgEbsqLOmV9OemZhn+6LS1v9wlcEOo8/zmGtD1tIUMwx1lvUAdKgOxEPoLwAlHdxgaHwQ X-Received: by 10.112.190.74 with SMTP id go10mr2213902lbc.9.1444644499729; Mon, 12 Oct 2015 03:08:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.78.81 with SMTP id c78ls465092lfb.45.gmail; Mon, 12 Oct 2015 03:08:19 -0700 (PDT) X-Received: by 10.112.151.106 with SMTP id up10mr12515795lbb.106.1444644499577; Mon, 12 Oct 2015 03:08:19 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id h75si10662481lfe.140.2015.10.12.03.08.19 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 03:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbk10 with SMTP id k10so25638290lbb.0 for <patchwork-forward@linaro.org>; Mon, 12 Oct 2015 03:08:19 -0700 (PDT) X-Received: by 10.25.28.73 with SMTP id c70mr6598750lfc.76.1444644499359; Mon, 12 Oct 2015 03:08:19 -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 w3csp1458298lbq; Mon, 12 Oct 2015 03:08:18 -0700 (PDT) X-Received: by 10.50.178.132 with SMTP id cy4mr75565igc.88.1444644498071; Mon, 12 Oct 2015 03:08:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si11303014iod.113.2015.10.12.03.08.17; Mon, 12 Oct 2015 03:08:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1751801AbbJLKIQ (ORCPT <rfc822;vaibhav.hiremath@linaro.org> + 7 others); Mon, 12 Oct 2015 06:08:16 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:56964 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751310AbbJLKIP (ORCPT <rfc822;devicetree@vger.kernel.org>); Mon, 12 Oct 2015 06:08:15 -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 t9CA7dS0019203; Mon, 12 Oct 2015 11:07:40 +0100 From: Liviu Dudau <Liviu.Dudau@arm.com> To: Will Deacon <will.deacon@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Bjorn Helgaas <bhelgaas@google.com>, Mark Rutland <mark.rutland@arm.com>, Linus Walleij <linus.walleij@linaro.org>, Robin Murphy <robin.murphy@arm.com>, Rob Herring <robh+dt@kernel.org>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, Arnd Bergmann <arnd@arndb.de>, Jon Medhurst <tixy@linaro.org> Cc: linux-pci <linux-pci@vger.kernel.org>, device-tree <devicetree@vger.kernel.org>, LAKML <linux-arm-kernel@lists.infradead.org>, LKML <linux-kernel@vger.kernel.org> Subject: [PATCH v3 2/5] PCI: Add quirk for PLDA's XpressRICH3 host bridge class. Date: Mon, 12 Oct 2015 11:07:36 +0100 Message-Id: <1444644459-2780-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.6.0 In-Reply-To: <1444644459-2780-1-git-send-email-Liviu.Dudau@arm.com> References: <1444644459-2780-1-git-send-email-Liviu.Dudau@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: devicetree@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.170 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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);
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 <Liviu.Dudau@arm.com> --- drivers/pci/quirks.c | 10 ++++++++++ 1 file changed, 10 insertions(+)