cxgb4: handle interrupt raised when FW crashes
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 9 Jun 2017 05:42:35 +0000 (11:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jun 2017 17:12:23 +0000 (13:12 -0400)
commitd86cc04e22ead660eeb362b28119c7cb1fbd9d06
tree3b2759d8935bf4c9014d8438f831784b8fb373d7
parent9438d27a9b7be75dc81e7fde4b2d0292a15f981a
cxgb4: handle interrupt raised when FW crashes

Handle TIMER0INT when FW crashes. Check for PCIE_FW[FW_EVAL]
and if it says "Device FW Crashed", then treat it as fatal.
Else, non-fatal.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h