iwlwifi: wake from runtime suspend before sending sync commands
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 11 Mar 2016 10:12:16 +0000 (12:12 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:14:48 +0000 (22:14 +0300)
commit71b1230ca97e60d26b4205ac553af6331724ca60
tree63e522c0a210fcbd7d07df90275157d3c9166860
parentfa820d696c0ac0bb3cf1b49a817899982d774d61
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>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/utils.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c