]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iwlwifi: pcie: don't reset TXQ write pointer
authorSara Sharon <sara.sharon@intel.com>
Thu, 19 Jul 2018 06:15:11 +0000 (09:15 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Sun, 11 Nov 2018 09:06:18 +0000 (11:06 +0200)
Currently code sets the write pointer when getting the TX queue
allocate response. This causes a redundant interrupt with any actual
change in the pointer. Remove this write altogether.

Fixes: 310181ec34e2 ("iwlwifi: move to TVQM mode")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c

index e880f69eac2698f91a95170ca910393fd631805d..0c5f11d2c5da495cd31b8e568a51f24c5ba60e08 100644 (file)
@@ -1228,8 +1228,7 @@ int iwl_trans_pcie_txq_alloc_response(struct iwl_trans *trans,
        /* Place first TFD at index corresponding to start sequence number */
        txq->read_ptr = wr_ptr;
        txq->write_ptr = wr_ptr;
-       iwl_write_direct32(trans, HBUS_TARG_WRPTR,
-                          (txq->write_ptr) | (qid << 16));
+
        IWL_DEBUG_TX_QUEUES(trans, "Activate queue %d\n", qid);
 
        iwl_free_resp(hcmd);