]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64c1f469246e458c4046284091ed7ed673946293
treee0d675d3ee2862bf60515a340b8bc1cd085bd624
parentab8c8f24aa65c5c79aee254e7367eed71e606e4d
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