From: Winkler, Tomas Date: Wed, 10 Nov 2010 17:56:42 +0000 (-0800) Subject: iwlwlifi: update rx write pointer w/o request mac access in the CAM mode X-Git-Tag: v2.6.38-rc1~476^2~558^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd11743dd25efe7157ff17b03dd2db0cbb6fed05;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git iwlwlifi: update rx write pointer w/o request mac access in the CAM mode In iwl_rx_queue_update_write_ptr function replace iwl_write_direct32 with iwl_write32 when not in power save mode. We don't have to go through grab nic access as the NIC is already awake. Signed-off-by: Tomas Winkler Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index f436270..baca4cc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c @@ -153,7 +153,7 @@ void iwl_rx_queue_update_write_ptr(struct iwl_priv *priv, struct iwl_rx_queue *q } else { /* Device expects a multiple of 8 */ q->write_actual = (q->write & ~0x7); - iwl_write_direct32(priv, rx_wrt_ptr_reg, q->write_actual); + iwl_write32(priv, rx_wrt_ptr_reg, q->write_actual); } q->need_update = 0;