ath10k: add HTT TX HL ops
authorErik Stromdahl <erik.stromdahl@gmail.com>
Tue, 4 Sep 2018 12:05:43 +0000 (15:05 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Sep 2018 16:14:48 +0000 (19:14 +0300)
Initial HTT TX ops for high latency devices.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htt_tx.c

index 965acd57b22fa3cf72ded05c99648ce5bd994c8e..9cbfc45b4b60e0b97e9c3aedbe05d229b8a47f68 100644 (file)
@@ -1562,11 +1562,17 @@ static const struct ath10k_htt_tx_ops htt_tx_ops_64 = {
        .htt_free_txbuff = ath10k_htt_tx_free_cont_txbuf_64,
 };
 
+static const struct ath10k_htt_tx_ops htt_tx_ops_hl = {
+       .htt_send_frag_desc_bank_cfg = ath10k_htt_send_frag_desc_bank_cfg_32,
+};
+
 void ath10k_htt_set_tx_ops(struct ath10k_htt *htt)
 {
        struct ath10k *ar = htt->ar;
 
-       if (ar->hw_params.target_64bit)
+       if (ar->dev_type == ATH10K_DEV_TYPE_HL)
+               htt->tx_ops = &htt_tx_ops_hl;
+       else if (ar->hw_params.target_64bit)
                htt->tx_ops = &htt_tx_ops_64;
        else
                htt->tx_ops = &htt_tx_ops_32;