Commit a2ff48af authored by Chaya Rachel Ivgi's avatar Chaya Rachel Ivgi Committed by Luca Coelho

iwlwifi: remove redundant reading from NVM file

The driver reads xtal_calib from NVM file, but actually never uses it.
This is only used in dvm driver.
Signed-off-by: default avatarChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent dd05f9aa
...@@ -89,10 +89,6 @@ enum wkp_nvm_offsets { ...@@ -89,10 +89,6 @@ enum wkp_nvm_offsets {
SKU = 2, SKU = 2,
N_HW_ADDRS = 3, N_HW_ADDRS = 3,
NVM_CHANNELS = 0x1E0 - NVM_SW_SECTION, NVM_CHANNELS = 0x1E0 - NVM_SW_SECTION,
/* NVM calibration section offset (in words) definitions */
NVM_CALIB_SECTION = 0x2B8,
XTAL_CALIB = 0x316 - NVM_CALIB_SECTION
}; };
enum ext_nvm_offsets { enum ext_nvm_offsets {
...@@ -748,9 +744,6 @@ iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg, ...@@ -748,9 +744,6 @@ iwl_parse_nvm_data(struct iwl_trans *trans, const struct iwl_cfg *cfg,
kfree(data); kfree(data);
return NULL; return NULL;
} }
/* in family 8000 Xtal calibration values moved to OTP */
data->xtal_calib[0] = *(nvm_calib + XTAL_CALIB);
data->xtal_calib[1] = *(nvm_calib + XTAL_CALIB + 1);
lar_enabled = true; lar_enabled = true;
ch_section = &nvm_sw[NVM_CHANNELS]; ch_section = &nvm_sw[NVM_CHANNELS];
} else { } else {
......
Markdown is supported
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