diff options
author | Shahar S Matityahu <shahar.s.matityahu@intel.com> | 2018-05-03 09:52:12 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2018-08-31 11:38:39 +0300 |
commit | ae17404e38601856036836a8082ad57102dd097e (patch) | |
tree | 46819cb8acdc296c3714d30abc417f5e95a65a53 /drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c | |
parent | c5f97542aa06bd6ef34a87f0c8bcb924899cf861 (diff) | |
download | linux-ae17404e38601856036836a8082ad57102dd097e.tar.bz2 |
iwlwifi: avoid code duplication in stopping fw debug data recording
Make all FW debug data stop recording flows to use
iwl_fw_dbg_stop_recording function instead of writing to FW
registers directly.
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c index 9b2a248e88b0..5f61b02e651e 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c @@ -55,6 +55,7 @@ #include "iwl-context-info.h" #include "iwl-context-info-gen3.h" #include "internal.h" +#include "fw/dbg.h" /* * Start up NIC's basic functionality after it has been reset @@ -164,9 +165,7 @@ void _iwl_trans_pcie_gen2_stop_device(struct iwl_trans *trans, bool low_power) trans_pcie->is_down = true; /* Stop dbgc before stopping device */ - iwl_write_prph(trans, DBGC_IN_SAMPLE, 0); - udelay(100); - iwl_write_prph(trans, DBGC_OUT_CTRL, 0); + iwl_fw_dbg_stop_recording(trans); /* tell the device to stop sending interrupts */ iwl_disable_interrupts(trans); |