diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-03-09 13:12:42 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-09 13:20:50 -0500 |
commit | 9ba1947a89938ee83e7c16709ee4095ae3e36c44 (patch) | |
tree | 5ed60bd99f5245db8a51cfc5389938c272601c5f | |
parent | 3dc420be8ce72688bd333afdab6d911e3ceb94e7 (diff) |
iwlwifi: fix cmd_queue number merge
iwlwifi: move command queue number out of the iwl_shared struct
move the cmd_queue out of iwl_shared struct, but for some reason the
patch is half done and fail compile
Here is the fix
John, could you apply this patch to wireless-next to address the issue
Thanks
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index a4d11016c3b4..75dc20bd965b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -216,10 +216,6 @@ | |||
216 | #define SCD_TRANS_TBL_OFFSET_QUEUE(x) \ | 216 | #define SCD_TRANS_TBL_OFFSET_QUEUE(x) \ |
217 | ((SCD_TRANS_TBL_MEM_LOWER_BOUND + ((x) * 2)) & 0xfffc) | 217 | ((SCD_TRANS_TBL_MEM_LOWER_BOUND + ((x) * 2)) & 0xfffc) |
218 | 218 | ||
219 | #define SCD_QUEUECHAIN_SEL_ALL(priv) \ | ||
220 | (((1<<hw_params(priv).max_txq_num) - 1) &\ | ||
221 | (~(1<<(priv)->shrd->cmd_queue))) | ||
222 | |||
223 | #define SCD_BASE (PRPH_BASE + 0xa02c00) | 219 | #define SCD_BASE (PRPH_BASE + 0xa02c00) |
224 | 220 | ||
225 | #define SCD_SRAM_BASE_ADDR (SCD_BASE + 0x0) | 221 | #define SCD_SRAM_BASE_ADDR (SCD_BASE + 0x0) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c index 8170133d8173..a3ac6d814637 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c | |||
@@ -556,7 +556,7 @@ static int iwl_trans_tx_alloc(struct iwl_trans *trans) | |||
556 | 556 | ||
557 | /* Alloc and init all Tx queues, including the command queue (#4/#9) */ | 557 | /* Alloc and init all Tx queues, including the command queue (#4/#9) */ |
558 | for (txq_id = 0; txq_id < hw_params(trans).max_txq_num; txq_id++) { | 558 | for (txq_id = 0; txq_id < hw_params(trans).max_txq_num; txq_id++) { |
559 | slots_num = (txq_id == trans->cmd_queue) ? | 559 | slots_num = (txq_id == trans_pcie->cmd_queue) ? |
560 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; | 560 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; |
561 | ret = iwl_trans_txq_alloc(trans, &trans_pcie->txq[txq_id], | 561 | ret = iwl_trans_txq_alloc(trans, &trans_pcie->txq[txq_id], |
562 | slots_num, txq_id); | 562 | slots_num, txq_id); |
@@ -601,7 +601,7 @@ static int iwl_tx_init(struct iwl_trans *trans) | |||
601 | 601 | ||
602 | /* Alloc and init all Tx queues, including the command queue (#4/#9) */ | 602 | /* Alloc and init all Tx queues, including the command queue (#4/#9) */ |
603 | for (txq_id = 0; txq_id < hw_params(trans).max_txq_num; txq_id++) { | 603 | for (txq_id = 0; txq_id < hw_params(trans).max_txq_num; txq_id++) { |
604 | slots_num = (txq_id == trans->cmd_queue) ? | 604 | slots_num = (txq_id == trans_pcie->cmd_queue) ? |
605 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; | 605 | TFD_CMD_SLOTS : TFD_TX_CMD_SLOTS; |
606 | ret = iwl_trans_txq_init(trans, &trans_pcie->txq[txq_id], | 606 | ret = iwl_trans_txq_init(trans, &trans_pcie->txq[txq_id], |
607 | slots_num, txq_id); | 607 | slots_num, txq_id); |
@@ -1686,7 +1686,7 @@ static int iwl_trans_pcie_wait_tx_queue_empty(struct iwl_trans *trans) | |||
1686 | 1686 | ||
1687 | /* waiting for all the tx frames complete might take a while */ | 1687 | /* waiting for all the tx frames complete might take a while */ |
1688 | for (cnt = 0; cnt < hw_params(trans).max_txq_num; cnt++) { | 1688 | for (cnt = 0; cnt < hw_params(trans).max_txq_num; cnt++) { |
1689 | if (cnt == trans->cmd_queue) | 1689 | if (cnt == trans_pcie->cmd_queue) |
1690 | continue; | 1690 | continue; |
1691 | txq = &trans_pcie->txq[cnt]; | 1691 | txq = &trans_pcie->txq[cnt]; |
1692 | q = &txq->q; | 1692 | q = &txq->q; |