Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 944eafc2 authored by Chaya Rachel Ivgi's avatar Chaya Rachel Ivgi Committed by Luca Coelho
Browse files

iwlwifi: mvm: set the default cTDP budget



In case there is no value received from BIOS
for cTDP budget, the default should be 2000 mWatt.

Signed-off-by: default avatarChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent c135cb56
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1173,7 +1173,12 @@ int iwl_mvm_up(struct iwl_mvm *mvm)
	}

	/* TODO: read the budget from BIOS / Platform NVM */
	if (iwl_mvm_is_ctdp_supported(mvm) && mvm->cooling_dev.cur_state > 0) {

	/*
	 * In case there is no budget from BIOS / Platform NVM the default
	 * budget should be 2000mW (cooling state 0).
	 */
	if (iwl_mvm_is_ctdp_supported(mvm)) {
		ret = iwl_mvm_ctdp_command(mvm, CTDP_CMD_OPERATION_START,
					   mvm->cooling_dev.cur_state);
		if (ret)