mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] PCI/VPD: Add Realtek 8126 to VPD blacklist
@ 2026-05-22 11:41 Hans Zhang
  2026-05-22 11:43 ` Hans Zhang
  2026-07-15 13:44 ` Manivannan Sadhasivam
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Zhang @ 2026-05-22 11:41 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, linux-kernel, Hans Zhang

The Realtek 8126 Ethernet controller advertises VPD capability but
returns invalid data when VPD is read, leading to kernel messages
like:

  r8169 ... invalid VPD tag 0x00 (size 0) at offset 0; assume
  missing optional EEPROM

and pcilib reporting "sysfs_read_vpd: read failed: No such device".

Add the device to the VPD blacklist to suppress these errors.

Signed-off-by: Hans Zhang <18255117159@163.com>
---
 drivers/pci/vpd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/vpd.c b/drivers/pci/vpd.c
index 153394a652d3..fbc34cd842ac 100644
--- a/drivers/pci/vpd.c
+++ b/drivers/pci/vpd.c
@@ -590,6 +590,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_LSI_LOGIC, 0x002f, quirk_blacklist_vpd);
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_LSI_LOGIC, 0x005d, quirk_blacklist_vpd);
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_LSI_LOGIC, 0x005f, quirk_blacklist_vpd);
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATTANSIC, PCI_ANY_ID, quirk_blacklist_vpd);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_REALTEK, 0x8126, quirk_blacklist_vpd);
 /*
  * The Amazon Annapurna Labs 0x0031 device id is reused for other non Root Port
  * device types, so the quirk is registered for the PCI_CLASS_BRIDGE_PCI class.
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-11 13:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-22 11:41 [PATCH] PCI/VPD: Add Realtek 8126 to VPD blacklist Hans Zhang
2026-05-22 11:43 ` Hans Zhang
2026-07-15 13:44 ` Manivannan Sadhasivam
2026-09-11 13:24   ` Hans Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®