iwlwifi: dbg: allow dump collection in case of an early error
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Tue, 26 Mar 2019 07:55:37 +0000 (09:55 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 29 Jun 2019 07:08:04 +0000 (10:08 +0300)
commite4eee9438860aa8ff7a42a579ab213ada244bf39
tree5d836e393e873b2f803d05848b51da598dfc3459
parent9ae3b870a8ffa24b506d6683f61ddba9c51644a7
iwlwifi: dbg: allow dump collection in case of an early error

Improve the robustness of the dump collection flow in case of an early
error:
1. in iwl_trans_pcie_sync_nmi, disable and enable interrupts only if
   they were already enabled
2. attempt to initiate dump collection in iwl_fw_dbg_error_collect only
   if the device is enabled
3. check Tx command queue was already allocated before trying to collect it

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c