iwlwifi: mvm: add some missing iwl_mvm_ref_sync() calls
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / mvm / tt.c
index 0c4ff3a57ade589c19d937e68610888b824d1ae5..0464599c111e07522fa5efb36fa3828639c17b0c 100644 (file)
@@ -338,10 +338,16 @@ static void check_exit_ctkill(struct work_struct *work)
 
        duration = tt->params->ct_kill_duration;
 
+       /* make sure the device is available for direct read/writes */
+       if (iwl_mvm_ref_sync(mvm, IWL_MVM_REF_CHECK_CTKILL))
+               goto reschedule;
+
        iwl_trans_start_hw(mvm->trans);
        temp = check_nic_temperature(mvm);
        iwl_trans_stop_device(mvm->trans);
 
+       iwl_mvm_unref(mvm, IWL_MVM_REF_CHECK_CTKILL);
+
        if (temp < MIN_TEMPERATURE || temp > MAX_TEMPERATURE) {
                IWL_DEBUG_TEMP(mvm, "Failed to measure NIC temperature\n");
                goto reschedule;
This page took 0.030329 seconds and 5 git commands to generate.