Lines 282-288
int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)
Link Here
|
282 |
|
282 |
|
283 |
lockdep_assert_held(&mvm->mutex); |
283 |
lockdep_assert_held(&mvm->mutex); |
284 |
|
284 |
|
285 |
if (WARN_ON_ONCE(mvm->init_ucode_complete)) |
285 |
if (WARN_ON_ONCE(mvm->init_ucode_complete || mvm->calibrating)) |
286 |
return 0; |
286 |
return 0; |
287 |
|
287 |
|
288 |
iwl_init_notification_wait(&mvm->notif_wait, |
288 |
iwl_init_notification_wait(&mvm->notif_wait, |
Lines 332-337
int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)
Link Here
|
332 |
goto out; |
332 |
goto out; |
333 |
} |
333 |
} |
334 |
|
334 |
|
|
|
335 |
mvm->calibrating = true; |
336 |
|
335 |
/* Send TX valid antennas before triggering calibrations */ |
337 |
/* Send TX valid antennas before triggering calibrations */ |
336 |
ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant); |
338 |
ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant); |
337 |
if (ret) |
339 |
if (ret) |
Lines 361-366
int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm)
Link Here
|
361 |
error: |
363 |
error: |
362 |
iwl_remove_notification(&mvm->notif_wait, &calib_wait); |
364 |
iwl_remove_notification(&mvm->notif_wait, &calib_wait); |
363 |
out: |
365 |
out: |
|
|
366 |
mvm->calibrating = false; |
364 |
if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) { |
367 |
if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) { |
365 |
/* we want to debug INIT and we have no NVM - fake */ |
368 |
/* we want to debug INIT and we have no NVM - fake */ |
366 |
mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) + |
369 |
mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) + |