iwlwifi: Add more call-sites for pcie reg dumper
authorKirtika Ruchandani <kirtika@chromium.org>
Sun, 8 Oct 2017 21:20:42 +0000 (14:20 -0700)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Nov 2017 09:56:08 +0000 (11:56 +0200)
commitfb12777ab59b4c8319c931970e28a5406d1aa702
tree805249cf01d6211f8e188717fb0e4d82d2614f4a
parent4ae827ffc173dc969c67e4f8b35d17a44f76ed40
iwlwifi: Add more call-sites for pcie reg dumper

Commit a6d24fad00d9 ("iwlwifi: pcie: dump registers when HW becomes
inaccessible") added a function to dump pcie config registers and
memory mapped registers on a failure. It is currently only accessible
within trans.c. Add it to struct iwl_trans_ops, so that failure cases
in other files can call it.  While there, add a call to this function
from iwl_pcie_load_firmware_chunk in pcie/tx.c, since this is a common
failure case seen on some platforms.

Signed-off-by: Kirtika Ruchandani <kirtika@chromium.org>
[modified the commit message slightly]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
drivers/net/wireless/intel/iwlwifi/pcie/trans.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c