iwlwifi: pcie: log when waking the NIC for hcmd submission fails
authorAndy Lutomirski <luto@amacapital.net>
Sat, 7 Jun 2014 16:00:11 +0000 (09:00 -0700)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Jun 2014 18:55:29 +0000 (21:55 +0300)
I've never seen this happen, but it's useful to rule it out.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/tx.c

index 038940afbdc57d8d176908bb4869fc8791f250eb..6acccb19c4f3030956e0d701a037c1227d7121b1 100644 (file)
@@ -1438,6 +1438,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
                                   CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
                        spin_unlock_irqrestore(&trans_pcie->reg_lock, flags);
                        trans_pcie->cmd_in_flight = false;
+                       IWL_ERR(trans, "Failed to wake NIC for hcmd\n");
                        idx = -EIO;
                        goto out;
                }