diff options
author | Eliad Peller <eliad@wizery.com> | 2015-12-10 08:47:11 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-12-13 06:05:03 -0500 |
commit | 08f0d23d97dcb49ca7ba65a3fc714a5d28a91d0c (patch) | |
tree | c40ac7a5c4b1386e65c2cc40b65b7ba62d94ae60 /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | |
parent | 36be0eb62e8292b1dbe6fdc2163196f9f69ca422 (diff) |
iwlwifi: avoid d0i3 commands when no/init ucode is loaded
d0i3 commands are not supported in the init image, so take
a reference to ensure we don't enter d0i3 during init image,
and additional checks to prevent d0i3 commands when no
fw image is loaded.
Add a few WARN_ON_ONCE to the d0i3 enter/exit commands
to ensure we send d0i3 commands only when the normal
ucode is loaded.
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index 7e2a8149411c..9ce7587e329d 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | |||
@@ -1316,6 +1316,7 @@ static ssize_t iwl_dbgfs_d0i3_refs_read(struct file *file, | |||
1316 | PRINT_MVM_REF(IWL_MVM_REF_EXIT_WORK); | 1316 | PRINT_MVM_REF(IWL_MVM_REF_EXIT_WORK); |
1317 | PRINT_MVM_REF(IWL_MVM_REF_PROTECT_CSA); | 1317 | PRINT_MVM_REF(IWL_MVM_REF_PROTECT_CSA); |
1318 | PRINT_MVM_REF(IWL_MVM_REF_FW_DBG_COLLECT); | 1318 | PRINT_MVM_REF(IWL_MVM_REF_FW_DBG_COLLECT); |
1319 | PRINT_MVM_REF(IWL_MVM_REF_INIT_UCODE); | ||
1319 | 1320 | ||
1320 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); | 1321 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); |
1321 | } | 1322 | } |