diff options
author | Ido Yariv <ido@wizery.com> | 2014-01-16 21:12:02 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-02-03 15:23:38 -0500 |
commit | 0c0e2c71b4da1818693acd73d49c4971283c8e72 (patch) | |
tree | b7650106a27245d5559110158afa9136d95d1c15 /drivers/net/wireless/iwlwifi/mvm/fw.c | |
parent | bcb079a14d75b6e1ed762b194fe04dc5d3f96d7e (diff) |
iwlwifi: mvm: handle platform PCIe power limitation
The tx backoff settings used by the thermal throttling mechanism can
also be used for enforcing a limit on the power consumption of the module.
Handle the platform PCIe power limitation by translating the limit
(measured in mw) to its respective tx backoff value. The translation is
module specific.
The resulting tx backoff value is sent to the ucode, and also serves as the
minimal backoff value that can be set by the thermal throttling mechanism.
Signed-off-by: Ido Yariv <idox.yariv@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/fw.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/fw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/fw.c b/drivers/net/wireless/iwlwifi/mvm/fw.c index c03d39541f9e..5798f1ae7482 100644 --- a/drivers/net/wireless/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/iwlwifi/mvm/fw.c | |||
@@ -439,6 +439,9 @@ int iwl_mvm_up(struct iwl_mvm *mvm) | |||
439 | goto error; | 439 | goto error; |
440 | } | 440 | } |
441 | 441 | ||
442 | /* Initialize tx backoffs to the minimal possible */ | ||
443 | iwl_mvm_tt_tx_backoff(mvm, 0); | ||
444 | |||
442 | ret = iwl_mvm_power_update_device_mode(mvm); | 445 | ret = iwl_mvm_power_update_device_mode(mvm); |
443 | if (ret) | 446 | if (ret) |
444 | goto error; | 447 | goto error; |