bnxt_en: Invalidate health register mapping at the end of probe.

After probe is successful, interface may not be bought up in all
the cases and health register mapping could be invalid if firmware
undergoes reset. Fix it by invalidating the health register at the
end of probe. It will be remapped during ifup.

Fixes: 43a440c400 ("bnxt_en: Improve the status_reliable flag in bp->fw_health.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vasundhara Volam 2021-04-11 20:18:12 -04:00 committed by David S. Miller
parent 17e1be342d
commit 190eda1a9d
1 changed files with 1 additions and 0 deletions

View File

@ -12972,6 +12972,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
rc); rc);
} }
bnxt_inv_fw_health_reg(bp);
bnxt_dl_register(bp); bnxt_dl_register(bp);
rc = register_netdev(dev); rc = register_netdev(dev);