Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3dcb56c authored by Maya Erez's avatar Maya Erez Committed by Lior David
Browse files

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.

Change-Id: If688dc575b49dcc32171f4f1df994d10f4113caf
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarLior David <liord@codeaurora.org>
parent c8e8793c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -646,8 +646,6 @@ int wil_priv_init(struct wil6210_priv *wil)

	/* edma configuration can be updated via debugfs before allocation */
	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;

	/* Rx status ring size should be bigger than the number of RX buffers
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ int wil_set_capabilities(struct wil6210_priv *wil)
		set_bit(hw_capa_no_flash, wil->hw_capa);
		wil->use_enhanced_dma_hw = 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_TALYN;
		if (wil_fw_verify_file_exists(wil, wil_fw_name))