net/qede/base: block mbox command to unresponsive MFW
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:30:06 +0000 (18:30 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commita474d1c1e7e545990202d676b598f4214017cd4c
tree2c2feb07d0ab8fa91e90ce9f56280dfa341e81e9
parente916697f8e894200086c6b9b9b972ed14f42b530
net/qede/base: block mbox command to unresponsive MFW

Block sending of mailbox command to the management FW if it is not
responsive. Use MCP_REG_CPU_STATE_SOFT_HALTED register to verify the MCP
is actually halted after sending the halt command and before proceeding
further.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_mcp.h
drivers/net/qede/base/reg_addr.h