net/qede/base: fix recovery from previous ungraceful exit
authorRasesh Mody <rasesh.mody@cavium.com>
Mon, 24 Jul 2017 10:19:02 +0000 (03:19 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
commit60c78a5e258ac50a334720f2032eb4c24b5b0c8f
tree3cfa978646baf05d2df728ff00e3222fb65027d9
parentef17b12e6a5a5e0a346cbaa4c7f2090dbb4b834e
net/qede/base: fix recovery from previous ungraceful exit

This patch modifies the recovery flow to allow ongoing PCIe
transactions to be completed. To achieve this, the load sequence is
changed such that the "final_cleanup" notification is sent while the
FID_enable is cleared.
This change ensures that the chip cleanup actions takes place from
previous driver instance if needed.

Fixes: ec94dbc57362 ("qede: add base driver")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_dev_api.h
drivers/net/qede/base/ecore_int.c
drivers/net/qede/base/ecore_int.h
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_mcp.h
drivers/net/qede/base/ecore_mcp_api.h