]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bnxt_en: Invalidate health register mapping at the end of probe.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 12 Apr 2021 00:18:12 +0000 (20:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:20:38 +0000 (13:20 -0700)
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: 43a440c4007b ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 3d36f945baf84495fb147dbda676db71301074eb..3f5fbdf61257c17388b0e59edf310a804aba2f3e 100644 (file)
@@ -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);