diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2016-03-11 05:12:16 -0500 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-05-10 15:14:48 -0400 |
commit | 71b1230ca97e60d26b4205ac553af6331724ca60 (patch) | |
tree | 63e522c0a210fcbd7d07df90275157d3c9166860 /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | |
parent | fa820d696c0ac0bb3cf1b49a817899982d774d61 (diff) |
iwlwifi: wake from runtime suspend before sending sync commands
If a host command was queued while in runtime suspend, it would go out
before the D0I3_END_CMD was sent. Sometimes it works, but sometimes
it fails, and it is obviously the wrong thing to do.
To fix this, have the opmode take a reference before sending a SYNC
command and make the pcie trans wait for the runtime state to become
active before actually queueing the command.
Signed-off-by: Luca Coelho <luciano.coelho@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 362a54601a80..513a85403924 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | |||
@@ -1309,6 +1309,7 @@ static ssize_t iwl_dbgfs_d0i3_refs_read(struct file *file, | |||
1309 | PRINT_MVM_REF(IWL_MVM_REF_PROTECT_CSA); | 1309 | PRINT_MVM_REF(IWL_MVM_REF_PROTECT_CSA); |
1310 | PRINT_MVM_REF(IWL_MVM_REF_FW_DBG_COLLECT); | 1310 | PRINT_MVM_REF(IWL_MVM_REF_FW_DBG_COLLECT); |
1311 | PRINT_MVM_REF(IWL_MVM_REF_INIT_UCODE); | 1311 | PRINT_MVM_REF(IWL_MVM_REF_INIT_UCODE); |
1312 | PRINT_MVM_REF(IWL_MVM_REF_SENDING_CMD); | ||
1312 | 1313 | ||
1313 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); | 1314 | return simple_read_from_buffer(user_buf, count, ppos, buf, pos); |
1314 | } | 1315 | } |