Skip to content

Commit 3e3c09b

Browse files
Vasundhara Volamkuba-moo
authored andcommitted
bnxt_en: Move reading VPD info after successful handshake with fw.
If firmware is in reset or in bad state, it won't be able to return VPD data. Move bnxt_vpd_read_info() until after bnxt_fw_init_one_p1() successfully returns. By then we would have established proper communications with the firmware. Reviewed-by: Edwin Peer <[email protected]> Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d1cbd16 commit 3e3c09b

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12584,9 +12584,6 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1258412584
dev->ethtool_ops = &bnxt_ethtool_ops;
1258512585
pci_set_drvdata(pdev, dev);
1258612586

12587-
if (BNXT_PF(bp))
12588-
bnxt_vpd_read_info(bp);
12589-
1259012587
rc = bnxt_alloc_hwrm_resources(bp);
1259112588
if (rc)
1259212589
goto init_err_pci_clean;
@@ -12598,6 +12595,9 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1259812595
if (rc)
1259912596
goto init_err_pci_clean;
1260012597

12598+
if (BNXT_PF(bp))
12599+
bnxt_vpd_read_info(bp);
12600+
1260112601
if (BNXT_CHIP_P5(bp)) {
1260212602
bp->flags |= BNXT_FLAG_CHIP_P5;
1260312603
if (BNXT_CHIP_SR2(bp))

0 commit comments

Comments
 (0)