Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d536c32b authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Emmanuel Grumbach
Browse files

iwlwifi: pcie: log when waking the NIC for hcmd submission fails



I've never seen this happen, but it's useful to rule it out.

Signed-off-by: default avatarAndy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 9ee6dace
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1438,6 +1438,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
				   CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
				   CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
			spin_unlock_irqrestore(&trans_pcie->reg_lock, flags);
			spin_unlock_irqrestore(&trans_pcie->reg_lock, flags);
			trans_pcie->cmd_in_flight = false;
			trans_pcie->cmd_in_flight = false;
			IWL_ERR(trans, "Failed to wake NIC for hcmd\n");
			idx = -EIO;
			idx = -EIO;
			goto out;
			goto out;
		}
		}