iwlwifi: mvm: allow setting the thermal state in D0i3
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 24 Mar 2016 09:10:12 +0000 (11:10 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 30 Mar 2016 13:24:51 +0000 (16:24 +0300)
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>
drivers/net/wireless/intel/iwlwifi/mvm/tt.c

index 3f5df76f65a4ba1aca2b20e467ef4009b5a5d9f2..eb3f460ce1b6b6bdc80a1b9f540c2bdbb7e3bf8f 100644 (file)
@@ -801,9 +801,6 @@ static int iwl_mvm_tcool_set_cur_state(struct thermal_cooling_device *cdev,
        if (!mvm->ucode_loaded || !(mvm->cur_ucode == IWL_UCODE_REGULAR))
                return -EIO;
 
-       if (test_bit(IWL_MVM_STATUS_IN_D0I3, &mvm->status))
-               return -EBUSY;
-
        mutex_lock(&mvm->mutex);
 
        if (new_state >= ARRAY_SIZE(iwl_mvm_cdev_budgets)) {
This page took 0.025478 seconds and 5 git commands to generate.