]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4914e53e87466eb90009766ca9183db64465a535
treef240f20f4c3eff6e60ebce028825dabd26c6ab5d
parent5b7192c9b6f6f605612f24a8ac24d6bd4e35be06
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: e46a45bd4817 ("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