]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
iwlwlifi: update rx write pointer w/o request mac access in the CAM mode
authorWinkler, Tomas <tomas.winkler@intel.com>
Wed, 10 Nov 2010 17:56:42 +0000 (09:56 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:26:48 +0000 (13:26 -0500)
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 <tomas.winkler@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-rx.c

index f436270ca39af6adb3290a137cd68a84138d4835..baca4cc0073b98cd537de40268c51316d72358f8 100644 (file)
@@ -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;