Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171836
b: refs/heads/master
c: e43ab94
h: refs/heads/master
v: v3
  • Loading branch information
Reinette Chatre authored and John W. Linville committed Nov 18, 2009
1 parent c0a9d43 commit 233b30b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98a7b43be19faa7b92576c62614c45e38517331c
refs/heads/master: e43ab94d2ea01a74e60c3423334687c2156c39b2
9 changes: 6 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ int iwl_eeprom_init(struct iwl_priv *priv)
}
e = (u16 *)priv->eeprom;

if (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) {
/* OTP reads require powered-up chip */
priv->cfg->ops->lib->apm_ops.init(priv);
}

ret = priv->cfg->ops->lib->eeprom_ops.verify_signature(priv);
if (ret < 0) {
IWL_ERR(priv, "EEPROM not found, EEPROM_GP=0x%08x\n", gp);
Expand All @@ -532,10 +537,8 @@ int iwl_eeprom_init(struct iwl_priv *priv)
ret = -ENOENT;
goto err;
}
if (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) {

/* OTP reads require powered-up chip */
priv->cfg->ops->lib->apm_ops.init(priv);
if (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) {

ret = iwl_init_otp_access(priv);
if (ret) {
Expand Down

0 comments on commit 233b30b

Please sign in to comment.