iwlwifi: pcie: apply destination before releasing reset
This allows to use the firmware debugging system even when the configuration values are set hard coded in the firmware. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:
parent
295ca6d3ed
commit
a2227ce2a3
@ -898,6 +898,9 @@ static int iwl_pcie_load_given_ucode_8000b(struct iwl_trans *trans,
|
|||||||
IWL_DEBUG_FW(trans, "working with %s CPU\n",
|
IWL_DEBUG_FW(trans, "working with %s CPU\n",
|
||||||
image->is_dual_cpus ? "Dual" : "Single");
|
image->is_dual_cpus ? "Dual" : "Single");
|
||||||
|
|
||||||
|
if (trans->dbg_dest_tlv)
|
||||||
|
iwl_pcie_apply_destination(trans);
|
||||||
|
|
||||||
/* configure the ucode to be ready to get the secured image */
|
/* configure the ucode to be ready to get the secured image */
|
||||||
/* release CPU reset */
|
/* release CPU reset */
|
||||||
iwl_write_prph(trans, RELEASE_CPU_RESET, RELEASE_CPU_RESET_BIT);
|
iwl_write_prph(trans, RELEASE_CPU_RESET, RELEASE_CPU_RESET_BIT);
|
||||||
@ -914,9 +917,6 @@ static int iwl_pcie_load_given_ucode_8000b(struct iwl_trans *trans,
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (trans->dbg_dest_tlv)
|
|
||||||
iwl_pcie_apply_destination(trans);
|
|
||||||
|
|
||||||
/* wait for image verification to complete */
|
/* wait for image verification to complete */
|
||||||
ret = iwl_poll_prph_bit(trans, LMPM_SECURE_BOOT_CPU1_STATUS_ADDR_B0,
|
ret = iwl_poll_prph_bit(trans, LMPM_SECURE_BOOT_CPU1_STATUS_ADDR_B0,
|
||||||
LMPM_SECURE_BOOT_STATUS_SUCCESS,
|
LMPM_SECURE_BOOT_STATUS_SUCCESS,
|
||||||
|
Loading…
Reference in New Issue
Block a user