From: Heiner Kallweit <hkallweit1@gmail.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: [PATCH] PCI: Don't try to read CLS from PCIe devices in pci_apply_final_quirks
Date: Tue, 8 Dec 2020 14:26:46 +0100 [thread overview]
Message-ID: <b5b1456c-d5ff-d1d1-ba95-b9a12eda8ae7@gmail.com> (raw)
Don't try to read CLS from PCIe devices in pci_apply_final_quirks().
This value has no meaning for PCIe.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/pci/quirks.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index d9cbe69b8..ac8ce9118 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -163,6 +163,9 @@ static int __init pci_apply_final_quirks(void)
pci_apply_fixup_final_quirks = true;
for_each_pci_dev(dev) {
pci_fixup_device(pci_fixup_final, dev);
+
+ if (pci_is_pcie(dev))
+ continue;
/*
* If arch hasn't set it explicitly yet, use the CLS
* value shared by all PCI devices. If there's a
--
2.29.2
next reply other threads:[~2020-12-08 13:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 13:26 Heiner Kallweit [this message]
2021-03-31 21:00 ` [PATCH] PCI: Don't try to read CLS from PCIe devices in pci_apply_final_quirks Bjorn Helgaas
2021-04-01 15:26 ` Heiner Kallweit
2021-04-01 16:20 ` Bjorn Helgaas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5b1456c-d5ff-d1d1-ba95-b9a12eda8ae7@gmail.com \
--to=hkallweit1@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).