Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247166
b: refs/heads/master
c: 2624e96
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Apr 25, 2011
1 parent 1181a44 commit 4bd1d56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 9f2e731d1d278d853def1567735d8a823668a3c8
refs/heads/master: 2624e96ce16bacae0e422d5775eac6d4fc33239a
15 changes: 4 additions & 11 deletions trunk/drivers/net/wireless/iwlwifi/iwl-tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,6 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
struct iwl_cmd_meta *meta;
struct iwl_tx_queue *txq = &priv->txq[priv->cmd_queue];
unsigned long flags;
void (*callback) (struct iwl_priv *priv, struct iwl_device_cmd *cmd,
struct iwl_rx_packet *pkt);


/* If a Tx command is being handled and it isn't in the actual
* command queue then there a command routing bug has been introduced
Expand All @@ -637,8 +634,6 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
return;
}

spin_lock_irqsave(&priv->hcmd_lock, flags);

cmd_index = get_cmd_index(&txq->q, index, huge);
cmd = txq->cmd[cmd_index];
meta = &txq->meta[cmd_index];
Expand All @@ -648,13 +643,14 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
dma_unmap_len(meta, len),
PCI_DMA_BIDIRECTIONAL);

callback = NULL;
/* Input error checking is done when commands are added to queue. */
if (meta->flags & CMD_WANT_SKB) {
meta->source->reply_page = (unsigned long)rxb_addr(rxb);
rxb->page = NULL;
} else
callback = meta->callback;
} else if (meta->callback)
meta->callback(priv, cmd, pkt);

spin_lock_irqsave(&priv->hcmd_lock, flags);

iwl_hcmd_queue_reclaim(priv, txq_id, index, cmd_index);

Expand All @@ -669,7 +665,4 @@ void iwl_tx_cmd_complete(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
meta->flags = 0;

spin_unlock_irqrestore(&priv->hcmd_lock, flags);

if (callback)
callback(priv, cmd, pkt);
}

0 comments on commit 4bd1d56

Please sign in to comment.