]> err.no Git - linux-2.6/commitdiff
iwlwifi: grap nic access before accessing periphery registers
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 4 Aug 2008 08:00:47 +0000 (16:00 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Aug 2008 19:09:13 +0000 (15:09 -0400)
We need to grap nic access before accessing periphery registers.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-5000.c

index c5b104fd149c60ee3b9e05ab390d1984b4c37d60..f3d139b663e651bab5759b7d12b2f2dd8e923a1e 100644 (file)
@@ -241,9 +241,11 @@ static void iwl5000_nic_config(struct iwl_priv *priv)
         * (PCIe power is lost before PERST# is asserted),
         * causing ME FW to lose ownership and not being able to obtain it back.
         */
-        iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG,
+       iwl_grab_nic_access(priv);
+       iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG,
                                APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS,
                                ~APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS);
+       iwl_release_nic_access(priv);
 
        spin_unlock_irqrestore(&priv->lock, flags);
 }