]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg_ini: set dump bit only when trigger collection is certain
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Tue, 19 Mar 2019 07:35:29 +0000 (09:35 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 19 Apr 2019 07:27:34 +0000 (10:27 +0300)
commit37d6c080deb6ca78a9d0ccce3da7208122c97cc9
tree2a30a55454f110472c2210826452b2c79828ef76
parent43e4464f7e65f3d28805bbd5803c8fe478003a27
iwlwifi: dbg_ini: set dump bit only when trigger collection is certain

In case the the trigger occurrences is zero or force_restart is set, the
driver sets IWL_FWRT_STATUS_DUMPING without actually scheduling trigger
collection. At this point no other dump collection can be performed.

Solve this by setting IWL_FWRT_STATUS_DUMPING bit only when the driver
is surely going to schedule dump collection

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