linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about iwl_pcie_rxq_inc_wr_ptr
@ 2013-08-02  8:42 Stanislaw Gruszka
  2013-08-19  9:32 ` [Ilw] " Grumbach, Emmanuel
  0 siblings, 1 reply; 4+ messages in thread
From: Stanislaw Gruszka @ 2013-08-02  8:42 UTC (permalink / raw)
  To: ilw; +Cc: linux-wireless

I would like to ask if below change is safe (I'm considering to do
that change on iwlegacy):

diff --git a/drivers/net/wireless/iwlwifi/pcie/rx.c b/drivers/net/wireless/iwlwifi/pcie/rx.c
index 567e67a..1ebdb83 100644
--- a/drivers/net/wireless/iwlwifi/pcie/rx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/rx.c
@@ -183,7 +183,7 @@ static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_rxq *q)
 		} else {
 			/* Device expects a multiple of 8 */
 			q->write_actual = (q->write & ~0x7);
-			iwl_write_direct32(trans, FH_RSCSR_CHNL0_WPTR,
+			iwl_write32(trans, FH_RSCSR_CHNL0_WPTR,
 				q->write_actual);
 		}
 	}

This register seems to be only read by firmware, so maybe we can modify
it without grab nic access. We are doing that on
iwl_pcie_txq_inc_wr_ptr().

Stanislaw 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-19 10:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02  8:42 Question about iwl_pcie_rxq_inc_wr_ptr Stanislaw Gruszka
2013-08-19  9:32 ` [Ilw] " Grumbach, Emmanuel
2013-08-19 10:33   ` Stanislaw Gruszka
2013-08-19 10:34     ` Grumbach, Emmanuel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).