iwlwifi: fix otp access init
Polling function returns positive time if polling was needed to read value. This is still success. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> CC: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
df29ff3794
commit
d77b034f62
@@ -240,14 +240,12 @@ static int iwl_init_otp_access(struct iwl_priv *priv)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
IWL_ERR(priv, "Time out access OTP\n");
|
IWL_ERR(priv, "Time out access OTP\n");
|
||||||
else {
|
else {
|
||||||
if (!ret) {
|
|
||||||
iwl_set_bits_prph(priv, APMG_PS_CTRL_REG,
|
iwl_set_bits_prph(priv, APMG_PS_CTRL_REG,
|
||||||
APMG_PS_CTRL_VAL_RESET_REQ);
|
APMG_PS_CTRL_VAL_RESET_REQ);
|
||||||
udelay(5);
|
udelay(5);
|
||||||
iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG,
|
iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG,
|
||||||
APMG_PS_CTRL_VAL_RESET_REQ);
|
APMG_PS_CTRL_VAL_RESET_REQ);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user