]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/net/wireless/intel/iwlwifi/fw/dbg.h
iwlwifi: avoid collecting firmware dump if not loaded
authorShaul Triebitz <shaul.triebitz@intel.com>
Thu, 11 Jan 2018 14:18:46 +0000 (16:18 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 2 Mar 2018 08:20:01 +0000 (10:20 +0200)
commit8745f12a6600dd9d31122588621d4c8ddb332cd7
tree33360587d5e1c211c94fa5b59c3bd692c57e363c
parent63dd5d022f4766e6b05ee611124afcc7cbfbb953
iwlwifi: avoid collecting firmware dump if not loaded

Trying to collect firmware debug data while firmware
is not loaded causes various errors (e.g. failing NIC access).
This causes even a bigger issue if at that time the
HW radio is off.
In that case, when later turning the radio on, the Driver
fails to read the HW (registers contain garbage values).
(It may be that the CSR_GP_CNTRL_REG_FLAG_RFKILL_WAKE_L1A_EN
bit is cleared on faulty NIC access - since the same behavior
was seen in HW RFKILL toggling before setting that bit.)

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/fw/dbg.h
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c