]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drivers/pci: Update the quirks for megaraid_sas adapter
authorBabu Moger <babu.moger@oracle.com>
Thu, 3 Dec 2015 18:24:38 +0000 (10:24 -0800)
committerAllen Pais <allen.pais@oracle.com>
Fri, 4 Dec 2015 06:54:48 +0000 (12:24 +0530)
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 <babu.moger@oracle.com>
Tested-by: Dmitry Klochkov <dmitry.klochkov@oracle.com>
Orabug: 22104511
(cherry picked from commit df139559cf34e64c478cb6255371a3fec964bdb3)

drivers/pci/quirks.c

index 7191fd1640027f4b1315739fb5a7b724053ff2d4..8ca26fef73fd5cedec2ebee2b150c140833f6650 100644 (file)
@@ -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,