cxgb4: Shutdown adapter if firmware times out or errors out
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 13 Jan 2017 16:25:26 +0000 (21:55 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 18:35:30 +0000 (13:35 -0500)
commit3be0679b4a91930ca8d0c8a66b39058a698e70fe
treee0d675d3ee2862bf60515a340b8bc1cd085bd624
parent51c89e6a3bf68d544e29b234c2cef6ffb73277a1
cxgb4: Shutdown adapter if firmware times out or errors out

Perform an emergency shutdown of the adapter and stop it from
continuing any further communication on the ports or DMA to the
host. This is typically used when the adapter and/or firmware
have crashed and we want to prevent any further accidental
communication with the rest of the world. This will also force
the port Link Status to go down -- if register writes work --
which should help our peers figure out that we're down.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h