Skip to content

Commit

Permalink
Revert "bnxt: Search VPD with pci_vpd_find_ro_info_keyword()"
Browse files Browse the repository at this point in the history
This reverts commit 58a9b5d.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Aug 23, 2021
1 parent 4a55c34 commit 4fd1315
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/broadcom/bnxt/bnxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -13195,6 +13195,12 @@ static void bnxt_vpd_read_info(struct bnxt *bp)
goto exit;
}

i = pci_vpd_find_tag(vpd_data, vpd_size, PCI_VPD_LRDT_RO_DATA);
if (i < 0) {
netdev_err(bp->dev, "VPD READ-Only not found\n");
goto exit;
}

ro_size = pci_vpd_lrdt_size(&vpd_data[i]);
i += PCI_VPD_LRDT_TAG_SIZE;
if (i + ro_size > vpd_size)
Expand Down

0 comments on commit 4fd1315

Please sign in to comment.