iwlwifi: mvm: reset the HW before dumping if HW error is detected
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 5 May 2017 13:11:24 +0000 (16:11 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 09:06:14 +0000 (12:06 +0300)
commit6b54ebf73b3e5adc2cab3abc6cb37ca66fa74ae2
tree3a0d063f07f4f89976a7a3723475f5346f0c314d
parentffd6fd45616672ee1ba122ea54d47fa8fe1dd8d8
iwlwifi: mvm: reset the HW before dumping if HW error is detected

If the hardware is stuck, we can't read any of the memory we need to
dump it, so we end up printing only 0xa5a5a5a5, which is useless.

To solve this, poke the hardware by triggering a reset and re-enabling
the clocks if we detect a HW error.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/utils.c