Skip to content

pci: Add VPD parsing support

Matt Carlson netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v27 patches 1 replySuperseded
  3. v17 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Constified the vpd buffer and keyword parameters.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7pci: Add PCI LRDT tag size and section sizedrivers/net/bnx2.c drivers/net/tg3.c include/linux/pci.h+25 -100 replies
2/7pci: Add large and small resource data type codedrivers/net/bnx2.c drivers/net/tg3.c include/linux/pci.h+67 -130 replies
3/7pci: Add helper to find a VPD resource data typedrivers/net/bnx2.c drivers/net/tg3.c drivers/pci/Makefile +2 more+65 -420 replies
4/7pci: Add VPD information field helper functionsdrivers/net/bnx2.c drivers/net/tg3.c include/linux/pci.h+23 -80 replies
5/7pci: Add helper to search for VPD keywordsdrivers/net/bnx2.c drivers/net/tg3.c drivers/pci/vpd.c +1 more+78 -430 replies
6/7bnx2: Remove now useless VPD codedrivers/net/bnx2.c+29 -450 replies
7/7tg3: Remove now useless VPD codedrivers/net/tg3.c+23 -290 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJesse Barnes
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] pci: Add VPD parsing support

This patch adds code to help parse a device's VPD. The bnx2 and tg3 network drivers are modified as an example on how to use the API. I believe the bnx2x driver will also use this API in the future.

Changes from v2:
* Constified the vpd buffer and keyword parameters.

Changes from v1:
* Renamed pci_vpd_find_tag() and pci_vpd_find_info_keyword() parameter names.
* Added docbook notations for functions and inline functions.
* Moved pci-vpd.h contents to pci.h