iwlwifi: pcie: support debug applying on a000 hw
authorLiad Kaufman <liad.kaufman@intel.com>
Wed, 22 Feb 2017 12:39:10 +0000 (14:39 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 19:37:24 +0000 (22:37 +0300)
Allow configuring debug destination on a000 HW.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info.c
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 1d95512361b2f100439b4ff1e8da653607424b9d..b1f43397bb59a72dbefd7fc1aab72d8a6de3d7b4 100644 (file)
@@ -251,6 +251,10 @@ int iwl_pcie_ctxt_info_init(struct iwl_trans *trans,
 
        iwl_enable_interrupts(trans);
 
+       /* Configure debug, if exists */
+       if (trans->dbg_dest_tlv)
+               iwl_pcie_apply_destination(trans);
+
        /* kick FW self load */
        iwl_write64(trans, CSR_CTXT_INFO_BA, trans_pcie->ctxt_info_dma_addr);
        iwl_write_prph(trans, UREG_CPU_INIT_RUN, 1);
index b9e9e10c32fad3bac06d77653757df16eef9762d..30835f06a6e2795b66c27bfe321e8b0e742e84a7 100644 (file)
@@ -778,6 +778,7 @@ int iwl_pcie_txq_alloc(struct iwl_trans *trans,
 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans,
                           struct iwl_dma_ptr *ptr, size_t size);
 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr);
+void iwl_pcie_apply_destination(struct iwl_trans *trans);
 
 /* transport gen 2 exported functions */
 int iwl_trans_pcie_gen2_start_fw(struct iwl_trans *trans,
index 91f6030529b32ef2848e3d94f09922b627d6df3b..5120fbcfcaf2c788fdc302cd1d935f7a746911f6 100644 (file)
@@ -831,7 +831,7 @@ static int iwl_pcie_load_cpu_sections(struct iwl_trans *trans,
        return 0;
 }
 
-static void iwl_pcie_apply_destination(struct iwl_trans *trans)
+void iwl_pcie_apply_destination(struct iwl_trans *trans)
 {
        struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);
        const struct iwl_fw_dbg_dest_tlv *dest = trans->dbg_dest_tlv;