mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
wifi: iwlwifi: do not warn about a flush with an empty TX queue
When resuming it can happen that the TX queue is flushed even though it is entirely empty. This is completely fine and should not be causing an error level log message. Return early from reclaim in that case. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20241008072037.7c152d0820be.I3ae39a9a470f47bfe4405f2e5c30327e157eb55f@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
b6ed795539
commit
02ea0fb981
@ -2351,6 +2351,10 @@ void iwl_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
|
||||
txq_write_ptr = txq->write_ptr;
|
||||
spin_unlock(&txq->lock);
|
||||
|
||||
/* There is nothing to do if we are flushing an empty queue */
|
||||
if (is_flush && txq_write_ptr == txq_read_ptr)
|
||||
goto out;
|
||||
|
||||
read_ptr = iwl_txq_get_cmd_index(txq, txq_read_ptr);
|
||||
|
||||
if (!test_bit(txq_id, trans_pcie->txqs.queue_used)) {
|
||||
|
Loading…
Reference in New Issue
Block a user