|
@@ -1233,9 +1233,12 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
|
|
}
|
|
}
|
|
|
|
|
|
/* TODO: read the budget from BIOS / Platform NVM */
|
|
/* TODO: read the budget from BIOS / Platform NVM */
|
|
- if (iwl_mvm_is_ctdp_supported(mvm) && mvm->cooling_dev.cur_state > 0)
|
|
|
|
|
|
+ if (iwl_mvm_is_ctdp_supported(mvm) && mvm->cooling_dev.cur_state > 0) {
|
|
ret = iwl_mvm_ctdp_command(mvm, CTDP_CMD_OPERATION_START,
|
|
ret = iwl_mvm_ctdp_command(mvm, CTDP_CMD_OPERATION_START,
|
|
mvm->cooling_dev.cur_state);
|
|
mvm->cooling_dev.cur_state);
|
|
|
|
+ if (ret)
|
|
|
|
+ goto error;
|
|
|
|
+ }
|
|
#else
|
|
#else
|
|
/* Initialize tx backoffs to the minimal possible */
|
|
/* Initialize tx backoffs to the minimal possible */
|
|
iwl_mvm_tt_tx_backoff(mvm, 0);
|
|
iwl_mvm_tt_tx_backoff(mvm, 0);
|