diff options
author | Heiner Kallweit <[email protected]> | 2021-09-10 08:22:06 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-10-11 15:10:11 -0500 |
commit | bf2928c7a284e31f9f91a004b5dca09c522157c0 (patch) | |
tree | 249089b5b3d093cfcb4451949ddde23598223783 /drivers/usb/cdns3/cdns3-trace.c | |
parent | e4e737bb5c170df6135a127739a9e6148ee3da82 (diff) |
PCI/VPD: Add pci_read/write_vpd_any()
In certain cases we need a variant of pci_read_vpd()/pci_write_vpd() that
does not check against dev->vpd.len. Such cases are:
- Reading VPD if dev->vpd.len isn't set yet (in pci_vpd_size())
- Devices that map non-VPD information to arbitrary places in VPD address
space (example: Chelsio T3 EEPROM write-protect flag)
Therefore add pci_read_vpd_any() and pci_write_vpd_any() that check against
PCI_VPD_MAX_SIZE only.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions