diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2016-03-01 03:30:48 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-03-02 02:00:46 -0500 |
commit | e27deb4583642d6c5b3cf18060e8239db1be9e59 (patch) | |
tree | d3841014286eb5bce475c03d27826712d0e68784 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |
parent | 0d0985adf6519952e0d51b5272abc3ef28d833bc (diff) |
iwlwifi: mvm: take the transport ref back when leaving
If d0i3 is supported, we have released the initial transport reference
in iwl_op_mode_mvm_start(), so we should take it back in
iwl_op_mode_mvm_stop() to keep it balanced.
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index f3283f4ea3df..3760a094b932 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |||
@@ -703,6 +703,13 @@ static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode) | |||
703 | struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); | 703 | struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); |
704 | int i; | 704 | int i; |
705 | 705 | ||
706 | /* If d0i3 is supported, we have released the reference that | ||
707 | * the transport started with, so we should take it back now | ||
708 | * that we are leaving. | ||
709 | */ | ||
710 | if (iwl_mvm_is_d0i3_supported(mvm)) | ||
711 | iwl_trans_ref(mvm->trans); | ||
712 | |||
706 | iwl_mvm_leds_exit(mvm); | 713 | iwl_mvm_leds_exit(mvm); |
707 | 714 | ||
708 | iwl_mvm_thermal_exit(mvm); | 715 | iwl_mvm_thermal_exit(mvm); |