From: Babu Moger Date: Thu, 3 Dec 2015 18:24:38 +0000 (-0800) Subject: drivers/pci: Update the quirks for megaraid_sas adapter X-Git-Tag: v4.1.12-92~198^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fd1f2b8bca1899520a6ceb0b1b4b1881baef425d;p=users%2Fjedix%2Flinux-maple.git 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) --- 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,