Commit eaf9f17b authored by Karthikeyan Periyasamy's avatar Karthikeyan Periyasamy Committed by Kalle Valo

wifi: ath12k: relocate ath12k_dp_pdev_pre_alloc() call

Currently, the data path pdev pre alloc and mac allocate are called
separately from the core start procedure. The data path pdev pre alloc
can be called from the mac allocate procedure itself since initialization
related to pdev happens in the mac allocate procedure. So move the caller
of DP pdev pre alloc from the core start procedure to the mac allocate
procedure. This change helps in the future to easily decouple the mac
allocate procedure from core start handling in order to support MLO in
multi chip.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
Signed-off-by: default avatarKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231206034920.1037449-2-quic_periyasa@quicinc.com
parent 6d2b0a06
...@@ -714,8 +714,6 @@ static int ath12k_core_start(struct ath12k_base *ab, ...@@ -714,8 +714,6 @@ static int ath12k_core_start(struct ath12k_base *ab,
ath12k_dp_cc_config(ab); ath12k_dp_cc_config(ab);
ath12k_dp_pdev_pre_alloc(ab);
ret = ath12k_dp_rx_pdev_reo_setup(ab); ret = ath12k_dp_rx_pdev_reo_setup(ab);
if (ret) { if (ret) {
ath12k_err(ab, "failed to initialize reo destination rings: %d\n", ret); ath12k_err(ab, "failed to initialize reo destination rings: %d\n", ret);
......
...@@ -7667,6 +7667,8 @@ int ath12k_mac_allocate(struct ath12k_base *ab) ...@@ -7667,6 +7667,8 @@ int ath12k_mac_allocate(struct ath12k_base *ab)
clear_bit(ATH12K_FLAG_MONITOR_ENABLED, &ar->monitor_flags); clear_bit(ATH12K_FLAG_MONITOR_ENABLED, &ar->monitor_flags);
} }
ath12k_dp_pdev_pre_alloc(ab);
return 0; return 0;
err_free_mac: err_free_mac:
......
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