]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/VPD: Make missing VPD message less alarming
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 1 Apr 2021 12:03:49 +0000 (14:03 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Apr 2021 19:38:31 +0000 (14:38 -0500)
commit6d2bacdb954914f3f706b87e9b40dd28fcdf0155
treef861fca4040045db1fa293b301351d783028ae9b
parent88158655b8b2bd5e5b48042f12fa1edb46caf2b6
PCI/VPD: Make missing VPD message less alarming

Realtek RTL8169/8168/8125 NIC families indicate VPD capability and an
optional VPD EEPROM can be connected via I2C/SPI. However I haven't seen
any card or system with such a VPD EEPROM yet. The missing EEPROM causes
the following warning whenever e.g. lscpi -vv is executed.

  invalid short VPD tag 00 at offset 01

The warning confuses users, and I think we should handle the situation more
gently. Therefore, if first VPD byte is read as 0x00, assume a missing
optional VPD PROM and replace the warning with a more descriptive message
at info level.

[bhelgaas: fix pre-existing whitespace]
Link: https://lore.kernel.org/r/ccbc11f1-4dbb-e2c8-d0ea-559e06d4c340@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c