net/qede/base: prevent race condition during unload
authorRasesh Mody <rasesh.mody@cavium.com>
Wed, 29 Mar 2017 20:36:57 +0000 (13:36 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:54 +0000 (19:02 +0200)
commit39f0eb3bbbc0fdbc8256c7891187ea7fecdb27f3
tree514bc5bfb33401d44a5a53f4a19aba6788e06b5a
parenteb8e81ad0d2ec50480882269da682d20a573a8cd
net/qede/base: prevent race condition during unload

Merge hw_stop and hw_reset into one function.
Prevent race condition between MFW attentions and pf stop command during
unload flow that causes an ASSERT.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/bcm_osal.h
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_dev_api.h
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_mcp.h
drivers/net/qede/base/ecore_spq.c
drivers/net/qede/qede_main.c