mirror of https://gitee.com/openkylin/linux.git
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:
parent
17e1be342d
commit
190eda1a9d
|
@ -12972,6 +12972,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
rc);
|
||||
}
|
||||
|
||||
bnxt_inv_fw_health_reg(bp);
|
||||
bnxt_dl_register(bp);
|
||||
|
||||
rc = register_netdev(dev);
|
||||
|
|
Loading…
Reference in New Issue