]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: mvm: fix debug print in the RSA ownership workaround
authorEran Harary <eran.harary@intel.com>
Thu, 19 Mar 2015 11:01:07 +0000 (13:01 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 30 Mar 2015 05:58:08 +0000 (08:58 +0300)
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>
drivers/net/wireless/iwlwifi/pcie/trans.c

index d8984fbb1f0d9074cb5de12c5f1b9f32cd50d1b0..2de8fbfe4edf4d6c6997307fb91052177fd7e6e4 100644 (file)
@@ -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;
        }