]> 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)
commitd8be85db69c8744f8cff55f3df9861241e927254
treee0d675d3ee2862bf60515a340b8bc1cd085bd624
parent632715971fa49e61ea5f208e2019540de04672f3
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