net/qede/base: serialize access to MFW mbox
authorHarish Patil <harish.patil@qlogic.com>
Wed, 19 Oct 2016 04:11:23 +0000 (21:11 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 17:42:16 +0000 (19:42 +0200)
commit1db31dcd6e77c97bea724b3739987de9c0992caf
tree21ad5842ab5a6022000b1c0e1789cf65ebf38b78
parentffdd0599173b4a00b98c11fb9ebcaaea76fc3abf
net/qede/base: serialize access to MFW mbox

Add ecore_mcp_mb_lock() and ecore_mcp_mb_unlock() APIs to ensure
a single thread is accessing MFW mailbox.

Signed-off-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_mcp.h