]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5da74ab08edb0e1e6440bfef10ab43c45b155e2
tree33360587d5e1c211c94fa5b59c3bd692c57e363c
parent7fd380646a4d3e100aab5fc49352b5f2381c50c5
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