aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2016-03-24 05:10:12 -0400
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-03-30 09:24:51 -0400
commit489c546dcecbddbadcbef25472d8fb4d693850e2 (patch)
tree78d2ec193d26f53aad88fe1b7e9e7b2589330c76 /drivers/net/wireless/intel/iwlwifi/mvm/tt.c
parentd2515a99b2da2bf08d5a1decb7b365e25adbccea (diff)
iwlwifi: mvm: allow setting the thermal state in D0i3
We were not allowing the thermal state to be set when we were in D0i3 mode. It was not very clearly specified how it should work, but now a decision was made to allow the state to be set in D0i3 (which will cause a brief wake up). Remove the check in the set_cur_state operation. 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/tt.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/tt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
index 3f5df76f65a4..eb3f460ce1b6 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
@@ -801,9 +801,6 @@ static int iwl_mvm_tcool_set_cur_state(struct thermal_cooling_device *cdev,
801 if (!mvm->ucode_loaded || !(mvm->cur_ucode == IWL_UCODE_REGULAR)) 801 if (!mvm->ucode_loaded || !(mvm->cur_ucode == IWL_UCODE_REGULAR))
802 return -EIO; 802 return -EIO;
803 803
804 if (test_bit(IWL_MVM_STATUS_IN_D0I3, &mvm->status))
805 return -EBUSY;
806
807 mutex_lock(&mvm->mutex); 804 mutex_lock(&mvm->mutex);
808 805
809 if (new_state >= ARRAY_SIZE(iwl_mvm_cdev_budgets)) { 806 if (new_state >= ARRAY_SIZE(iwl_mvm_cdev_budgets)) {