From fd1f2b8bca1899520a6ceb0b1b4b1881baef425d Mon Sep 17 00:00:00 2001 From: Babu Moger Date: Thu, 3 Dec 2015 10:24:38 -0800 Subject: [PATCH] drivers/pci: Update the quirks for megaraid_sas adapter This megaraid_sas adapter does have a valid pci vpd information. Earlier commit 5bf1badcd02f ("pci: Limit VPD length for megaraid_sas adapter") changed the vpd length to 0x80. This change fixed the panic. However, we found some options of the lspci does not work very well if it cannot find the valid vpd tag(Example command "lspci -s 10:00.0 -vv"). It displays the error message and exits right away. Setting the length to 0 fixes the problem. Signed-off-by: Babu Moger Tested-by: Dmitry Klochkov Orabug: 22104511 (cherry picked from commit df139559cf34e64c478cb6255371a3fec964bdb3) --- drivers/pci/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 7191fd164002..8ca26fef73fd 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2083,7 +2083,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, 0x324e, quirk_via_cx700_pci_parking_c static void quirk_megaraid_sas_limit_vpd(struct pci_dev *dev) { if (dev->vpd) - dev->vpd->len = 0x80; + dev->vpd->len = 0; } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LSI_LOGIC, 0x0060, -- 2.50.1