Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1243382

[PATCH 2/4] PCI: Add quirk for PLDA's XpressRICH3 host bridge class.

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news.ecp.fr!aioe.org!bofh.it!news.nic.it!robomod
From Liviu Dudau <Liviu.Dudau@arm.com>
Newsgroups linux.kernel
Subject [PATCH 2/4] PCI: Add quirk for PLDA's XpressRICH3 host bridge class.
Date Fri, 09 Oct 2015 15:50:03 +0200
Message-ID <qhGdB-3Jr-33@gated-at.bofh.it> (permalink)
References <qhGdz-3Jr-7@gated-at.bofh.it>
X-Original-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>
X-Mailer git-send-email 2.6.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-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>
X-Original-Date Fri, 9 Oct 2015 14:45:21 +0100
X-Original-Message-ID <1444398323-17354-3-git-send-email-Liviu.Dudau@arm.com>
X-Original-References <1444398323-17354-1-git-send-email-Liviu.Dudau@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1243382

Show key headers only | View raw


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(+)

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);
-- 
2.6.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] arm64: Juno: Add support for PCIe on R1 board Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 15:50 +0200
  [PATCH 2/4] PCI: Add quirk for PLDA's XpressRICH3 host bridge class. Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 15:50 +0200
  [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on Juno R1 Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 15:50 +0200
    Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Rob Herring <robh@kernel.org> - 2015-10-09 16:00 +0200
      Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Will Deacon <will.deacon@arm.com> - 2015-10-09 16:20 +0200
      Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 16:20 +0200
        Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Mark Rutland <mark.rutland@arm.com> - 2015-10-09 17:50 +0200
          Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on Juno R1 Arnd Bergmann <arnd@arndb.de> - 2015-10-09 17:50 +0200
            Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 18:10 +0200
              Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Mark Rutland <mark.rutland@arm.com> - 2015-10-09 18:40 +0200
                Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on  Juno R1 Liviu Dudau <Liviu.Dudau@arm.com> - 2015-10-09 18:50 +0200

csiph-web