blob: 9e06f831214c3bc2ef527cf35a986600dacdaeb4 [file] [log] [blame]
From b09f7a9eac0377254e39fae1dbda66ae02e1a55c Mon Sep 17 00:00:00 2001
From: Bjorn Helgaas <bhelgaas@google.com>
Date: Tue, 15 Nov 2016 08:01:17 -0600
Subject: [PATCH] PCI: Expand "VPD access disabled" quirk message
commit 044bc425bb72ffdecfb2a66d50cb1d024ecb96d0 upstream.
It's not very enlightening to see
pci 0000:07:00.0: [Firmware Bug]: VPD access disabled
in the dmesg log because there's no clue about what the firmware bug is.
Expand the message to explain why we're disabling VPD.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 2a4b682cb861..5e8abe005b29 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2145,7 +2145,7 @@ static void quirk_blacklist_vpd(struct pci_dev *dev)
{
if (dev->vpd) {
dev->vpd->len = 0;
- dev_warn(&dev->dev, FW_BUG "VPD access disabled\n");
+ dev_warn(&dev->dev, FW_BUG "disabling VPD access (can't determine size of non-standard VPD format)\n");
}
}
--
2.12.0