iwlwifi: grap nic access before accessing periphery registers
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>
This commit is contained in:
Родитель
1465256236
Коммит
2d3db67951
|
@ -241,9 +241,11 @@ static void iwl5000_nic_config(struct iwl_priv *priv)
|
||||||
* (PCIe power is lost before PERST# is asserted),
|
* (PCIe power is lost before PERST# is asserted),
|
||||||
* causing ME FW to lose ownership and not being able to obtain it back.
|
* 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,
|
||||||
~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);
|
spin_unlock_irqrestore(&priv->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче