]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/iwlwifi/iwl-io.c
iwlwifi: dump stack when fail to gain access to the device
[karo-tx-linux.git] / drivers / net / wireless / iwlwifi / iwl-io.c
index e2e3b5c9cf7fb411fb6f22c86138fda0b4ebcb4d..fc365350a3e7e3cf47b2fa15f9091c175cb91310 100644 (file)
@@ -121,10 +121,10 @@ int iwl_grab_nic_access_silent(struct iwl_trans *trans)
 int iwl_grab_nic_access(struct iwl_trans *trans)
 {
        int ret = iwl_grab_nic_access_silent(trans);
-       if (ret) {
+       if (unlikely(ret)) {
                u32 val = iwl_read32(trans, CSR_GP_CNTRL);
-               IWL_ERR(trans,
-                       "MAC is in deep sleep!. CSR_GP_CNTRL = 0x%08X\n", val);
+               WARN_ONCE(1, "Timeout waiting for hardware access "
+                            "(CSR_GP_CNTRL 0x%08x)\n", val);
        }
 
        return ret;