diff options
author | David S. Miller <davem@davemloft.net> | 2021-08-23 13:04:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-23 13:04:23 +0300 |
commit | 4fd1315706444aa3ab0f9e0ee2f7b86b6f0502c7 (patch) | |
tree | d1900febd4e41fdd3c2466f3c07b80d0388ccd1c /drivers/net | |
parent | 4a55c34e305077f5c8a6a2dbcffeccff01c388b5 (diff) | |
download | linux-4fd1315706444aa3ab0f9e0ee2f7b86b6f0502c7.tar.xz |
Revert "bnxt: Search VPD with pci_vpd_find_ro_info_keyword()"
This reverts commit 58a9b5d2621e725526a63847ae77b3a4c2c2bf93.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 893bdaf03043..9182060d0f68 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -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) |