qed: Avoid sending mailbox commands when MFW is not responsive
authorTomer Tayar <Tomer.Tayar@cavium.com>
Sun, 19 Aug 2018 21:01:45 +0000 (00:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2018 18:34:39 +0000 (11:34 -0700)
commitb310974e041913231b6e3d5d475d4df55c312301
treed0d052630cf2201ade7ef0590bf11ceeb8c77873
parenteaa50fc59e5841910987e90b0438b2643041f508
qed: Avoid sending mailbox commands when MFW is not responsive

Keep sending mailbox commands to the MFW when it is not responsive ends up
with a redundant amount of timeout expiries.
This patch prints the MCP status on the first command which is not
responded, and blocks the following commands.
Since the (un)load request commands might be not responded due to other
PFs, the patch also adds the option to skip the blocking upon a failure.

Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_mcp.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h
drivers/net/ethernet/qlogic/qed/qed_reg_addr.h