projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0adb52d
)
iwlwifi: first deactivate a queue, then wipe out its data
author
Emmanuel Grumbach
<
[email protected]
>
Sun, 14 Oct 2012 14:36:36 +0000
(16:36 +0200)
committer
Johannes Berg
<
[email protected]
>
Tue, 16 Oct 2012 14:33:28 +0000
(16:33 +0200)
Doing the opposite is wrong, the SCD wouldn't like someone
to clear its data while the queue is still active.
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
drivers/net/wireless/iwlwifi/pcie/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/pcie/tx.c
b/drivers/net/wireless/iwlwifi/pcie/tx.c
index f3c23afbbe63f34c07212cc1346872090274522d..39ead8cc7e73034ecfebab4aba8f0eeb87b038ed 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/
drivers/net/wireless/iwlwifi/pcie/tx.c
@@
-491,6
+491,8
@@
void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int txq_id)
return;
}
+ iwl_txq_set_inactive(trans, txq_id);
+
rd_ptr = iwl_read_prph(trans, SCD_QUEUE_RDPTR(txq_id)) & (n_bd - 1);
wr_ptr = iwl_read_prph(trans, SCD_QUEUE_WRPTR(txq_id));
@@
-500,7
+502,6
@@
void iwl_trans_pcie_txq_disable(struct iwl_trans *trans, int txq_id)
_iwl_write_targ_mem_dwords(trans, stts_addr,
zero_val, ARRAY_SIZE(zero_val));
- iwl_txq_set_inactive(trans, txq_id);
IWL_DEBUG_TX_QUEUES(trans, "Deactivate queue %d\n", txq_id);
}