PCI/VPD: Determine VPD size in pci_vpd_init()
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 8 Aug 2021 17:22:52 +0000 (19:22 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Aug 2021 17:48:48 +0000 (12:48 -0500)
commit7bac54497c3e3b2ca37b7043f1fa78586540f10e
tree2c07b300e615eadb0109ed7d6bae59051d37c9c5
parentfd00faa375fbb9d46ae0730d0faf4a3006301005
PCI/VPD: Determine VPD size in pci_vpd_init()

Determine VPD size in pci_vpd_init().

Quirks set dev->vpd.len to a non-zero value, so they cause us to skip the
dynamic size calculation.  Prerequisite is that we move the quirks from
FINAL to HEADER so they are run before pci_vpd_init().

Link: https://lore.kernel.org/r/cc4a6538-557a-294d-4f94-e6d1d3c91589@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c