Skip to content

Commit

Permalink
iwlwifi: mvm: fix debug print in the RSA ownership workaround
Browse files Browse the repository at this point in the history
The semaphore may not be accessible. Fix the debug prints
accordingly.

Signed-off-by: Eran Harary <eran.harary@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Eran Harary authored and Emmanuel Grumbach committed Mar 30, 2015
1 parent 5d42e7b commit 1e16707
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,11 +691,15 @@ static int iwl_pcie_rsa_race_bug_wa(struct iwl_trans *trans)
{
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);
if (val & (BIT(1) | BIT(17))) {
IWL_ERR(trans,
"can't access the RSA semaphore it is write protected\n");
IWL_INFO(trans,
"can't access the RSA semaphore it is write protected\n");
return 0;
}

Expand Down

0 comments on commit 1e16707

Please sign in to comment.