Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265869
b: refs/heads/master
c: 9d6b2cb
h: refs/heads/master
i:
  265867: cab03ed
v: v3
  • Loading branch information
Emmanuel Grumbach authored and John W. Linville committed Aug 29, 2011
1 parent 3cf5be5 commit 641970e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dda61a4482661d71034cc132d1f474f19ce34a4d
refs/heads/master: 9d6b2cb1ccf9c1e00a0891eff78b93eb1a1fc372
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,6 @@ struct iwl_priv {
/* Tx DMA processing queues */
struct iwl_tx_queue *txq;
unsigned long txq_ctx_active_msk;
struct iwl_dma_ptr kw; /* keep warm address */

/* counts mgmt, ctl, and data packets */
struct traffic_stats tx_stats;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-trans-int-pcie.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ struct iwl_rx_queue {
* @trans: pointer to the generic transport area
* @scd_base_addr: scheduler sram base address in SRAM
* @scd_bc_tbls: pointer to the byte count table of the scheduler
* @kw: keep warm address
*/
struct iwl_trans_pcie {
struct iwl_rx_queue rxq;
Expand All @@ -115,6 +116,7 @@ struct iwl_trans_pcie {
u32 inta_mask;
u32 scd_base_addr;
struct iwl_dma_ptr scd_bc_tbls;
struct iwl_dma_ptr kw;
};

#define IWL_TRANS_GET_PCIE_TRANS(_iwl_trans) \
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static void iwl_trans_pcie_tx_free(struct iwl_trans *trans)
kfree(priv->txq);
priv->txq = NULL;

iwlagn_free_dma_ptr(trans, &priv->kw);
iwlagn_free_dma_ptr(trans, &trans_pcie->kw);

iwlagn_free_dma_ptr(trans, &trans_pcie->scd_bc_tbls);
}
Expand Down Expand Up @@ -527,7 +527,7 @@ static int iwl_trans_tx_alloc(struct iwl_trans *trans)
}

/* Alloc keep-warm buffer */
ret = iwlagn_alloc_dma_ptr(trans, &priv->kw, IWL_KW_SIZE);
ret = iwlagn_alloc_dma_ptr(trans, &trans_pcie->kw, IWL_KW_SIZE);
if (ret) {
IWL_ERR(trans, "Keep Warm allocation failed\n");
goto error;
Expand Down Expand Up @@ -567,6 +567,8 @@ static int iwl_tx_init(struct iwl_trans *trans)
unsigned long flags;
bool alloc = false;
struct iwl_priv *priv = priv(trans);
struct iwl_trans_pcie *trans_pcie =
IWL_TRANS_GET_PCIE_TRANS(trans);

if (!priv->txq) {
ret = iwl_trans_tx_alloc(trans);
Expand All @@ -581,7 +583,7 @@ static int iwl_tx_init(struct iwl_trans *trans)
iwl_write_prph(priv, SCD_TXFACT, 0);

/* Tell NIC where to find the "keep warm" buffer */
iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, priv->kw.dma >> 4);
iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, trans_pcie->kw.dma >> 4);

spin_unlock_irqrestore(&trans->shrd->lock, flags);

Expand Down

0 comments on commit 641970e

Please sign in to comment.