iwlwifi: mvm: flush all used TX queues before suspending
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 2 Oct 2015 15:13:10 +0000 (18:13 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Nov 2015 14:38:52 +0000 (16:38 +0200)
commiteb3908d3718455e9fcb0d52b391a2851900d7e27
tree0338a286e41eba6c6faf91dff979978252d0800d
parent1a616dd2f17161b296aab46ee5a464ae3bf734ce
iwlwifi: mvm: flush all used TX queues before suspending

There is a potential race condition when entering suspend with d0i3 in
PCIe.  If there is a frame queued just before we suspend, it won't
complete and we will never clear the queue stuck timer.  To solve
this, call TX_PATH_FLUSH to flush all queues (except the command
queue) as part of the d0i3 entry process.  Add a new function that
returns all the flushable queues.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c