Commit 596bdbcc authored by Maya Erez's avatar Maya Erez Committed by Kalle Valo

wil6210: set edma variables only for Talyn-MB devices

use_rx_hw_reordering is already set to true in wil_set_capabilities
for Talyn-MB devices. Remove its setting from wil_priv_init to
prevent its activation for older chips.
Similarly, move the setting of use_compressed_rx_status to
wil_set_capabilities.
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 9a65064a
...@@ -653,8 +653,6 @@ int wil_priv_init(struct wil6210_priv *wil) ...@@ -653,8 +653,6 @@ int wil_priv_init(struct wil6210_priv *wil)
/* edma configuration can be updated via debugfs before allocation */ /* edma configuration can be updated via debugfs before allocation */
wil->num_rx_status_rings = WIL_DEFAULT_NUM_RX_STATUS_RINGS; wil->num_rx_status_rings = WIL_DEFAULT_NUM_RX_STATUS_RINGS;
wil->use_compressed_rx_status = true;
wil->use_rx_hw_reordering = true;
wil->tx_status_ring_order = WIL_TX_SRING_SIZE_ORDER_DEFAULT; wil->tx_status_ring_order = WIL_TX_SRING_SIZE_ORDER_DEFAULT;
/* Rx status ring size should be bigger than the number of RX buffers /* Rx status ring size should be bigger than the number of RX buffers
......
...@@ -108,6 +108,7 @@ int wil_set_capabilities(struct wil6210_priv *wil) ...@@ -108,6 +108,7 @@ int wil_set_capabilities(struct wil6210_priv *wil)
set_bit(hw_capa_no_flash, wil->hw_capa); set_bit(hw_capa_no_flash, wil->hw_capa);
wil->use_enhanced_dma_hw = true; wil->use_enhanced_dma_hw = true;
wil->use_rx_hw_reordering = true; wil->use_rx_hw_reordering = true;
wil->use_compressed_rx_status = true;
wil_fw_name = ftm_mode ? WIL_FW_NAME_FTM_TALYN : wil_fw_name = ftm_mode ? WIL_FW_NAME_FTM_TALYN :
WIL_FW_NAME_TALYN; WIL_FW_NAME_TALYN;
if (wil_fw_verify_file_exists(wil, wil_fw_name)) if (wil_fw_verify_file_exists(wil, wil_fw_name))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment