提交 1e167071 编写于 作者: E Eran Harary 提交者: Emmanuel Grumbach

iwlwifi: mvm: fix debug print in the RSA ownership workaround

The semaphore may not be accessible. Fix the debug prints
accordingly.
Signed-off-by: NEran Harary <eran.harary@intel.com>
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
上级 5d42e7b2
...@@ -691,10 +691,14 @@ static int iwl_pcie_rsa_race_bug_wa(struct iwl_trans *trans) ...@@ -691,10 +691,14 @@ static int iwl_pcie_rsa_race_bug_wa(struct iwl_trans *trans)
{ {
u32 val, loop = 1000; u32 val, loop = 1000;
/* Check the RSA semaphore is accessible - if not, we are in trouble */ /*
* Check the RSA semaphore is accessible.
* If the HW isn't locked and the rsa semaphore isn't accessible,
* we are in trouble.
*/
val = iwl_read_prph(trans, PREG_AUX_BUS_WPROT_0); val = iwl_read_prph(trans, PREG_AUX_BUS_WPROT_0);
if (val & (BIT(1) | BIT(17))) { if (val & (BIT(1) | BIT(17))) {
IWL_ERR(trans, IWL_INFO(trans,
"can't access the RSA semaphore it is write protected\n"); "can't access the RSA semaphore it is write protected\n");
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册