]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc08fa972fa14fe7178fdde518476be48bcb1207d
tree2c07b300e615eadb0109ed7d6bae59051d37c9c5
parentd03756c78671e8ea770a3a2aa89d7e0b37a06fa4
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