net/bnxt: add more checks during firmware reset
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 24 Oct 2019 07:44:28 +0000 (13:14 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:23:23 +0000 (19:23 +0200)
commitbfbfe4aaa1ebee405d497dfef7346e220c99590b
treee89a3985377a7cef3818065d8321edd78c93e173
parent8937597cfe7caf6a2ca4353b5be6f828e114f600
net/bnxt: add more checks during firmware reset

Added check for fw reset or fw errors in few more routines.
While processing the events, if it is fw fatal or non-fatal
event, there is no need to process the remaining events as
driver triggers recovery mechanism.

Also added a check for fw reset or fatal error in bnxt_disable_int()
to avoid bar access in case of fatal error.

Fixes: be14720def9c ("net/bnxt: support FW reset")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Rahul Gupta <rahul.gupta@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_irq.c
drivers/net/bnxt/bnxt_rxr.c