Commit d77b034f authored by Reinette Chatre's avatar Reinette Chatre Committed by John W. Linville
Browse files

iwlwifi: fix otp access init

Polling function returns positive time if polling was needed to
read value. This is still success.

Signed-off-by: default avatarReinette Chatre <>
CC: Wey-Yi Guy <>
Signed-off-by: default avatarJohn W. Linville <>
parent df29ff37
......@@ -240,14 +240,12 @@ static int iwl_init_otp_access(struct iwl_priv *priv)
if (ret < 0)
IWL_ERR(priv, "Time out access OTP\n");
else {
if (!ret) {
iwl_set_bits_prph(priv, APMG_PS_CTRL_REG,
iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG,
return ret;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment