]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Remove the read of BNXT_FW_RESET_INPROG_REG after firmware reset.
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 22 Mar 2021 07:08:44 +0000 (03:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:07:28 +0000 (13:07 -0700)
commit8f6e8d55a6cefab0ce455630e2fe6be6ca76763c
tree2e26f751d6b9709f950d3dbdb97379cfe1cad771
parent3e01f49f6d2cbd23866408d29f2ccb9a34ead4b7
bnxt_en: Remove the read of BNXT_FW_RESET_INPROG_REG after firmware reset.

Once the chip goes through reset, the register mapping may be lost
and any read of the mapped health registers may return garbage value
until the registers are mapped again in the init path.

Reading BNXT_FW_RESET_INPROG_REG after firmware reset will likely
return garbage value due to the above reason.  Reading this register
is for information purpose only so remove it.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
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