Skip to content

Commit c55e28a

Browse files
Vasundhara Volamdavem330
authored andcommitted
bnxt_en: Read VPD info only for PFs
Virtual functions does not have VPD information. This patch modifies calling bnxt_read_vpd_info() only for PFs and avoids an unnecessary error log. Fixes: a0d0fd7 ("bnxt_en: Read partno and serialno of the board from VPD") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c2dec36 commit c55e28a

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11913,7 +11913,8 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1191311913
dev->ethtool_ops = &bnxt_ethtool_ops;
1191411914
pci_set_drvdata(pdev, dev);
1191511915

11916-
bnxt_vpd_read_info(bp);
11916+
if (BNXT_PF(bp))
11917+
bnxt_vpd_read_info(bp);
1191711918

1191811919
rc = bnxt_alloc_hwrm_resources(bp);
1191911920
if (rc)

0 commit comments

Comments
 (0)