iwlwifi: mvm: add some missing iwl_mvm_ref_sync() calls
authorEliad Peller <eliad@wizery.com>
Tue, 1 Jul 2014 15:38:38 +0000 (18:38 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 21 Jul 2014 07:43:13 +0000 (10:43 +0300)
commit576eeee9d3ab395f47462c03067c8b9381281f1d
treed8511410c9fcdb97ad4b06790b63d77f0c08bfbf
parent51ea1c7dbd4c5151b7f5777cabc505d43d2c42cb
iwlwifi: mvm: add some missing iwl_mvm_ref_sync() calls

Add iwl_mvm_ref_sync() calls (with new ref types) to
flows that might access the device directly.

These calls make sure the device is out of d0i3,
and the bus is available for direct access.

Since some of these functions are reentrant, convert
the refs_bitmap to a ref counter, so multiple refs
of the same type could be taken concurrently.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/ops.c
drivers/net/wireless/iwlwifi/mvm/tt.c