Commit 166e22b3 authored by Anilkumar Kolli's avatar Anilkumar Kolli Committed by Kalle Valo

ath11k: ahb: call ath11k_core_init() before irq configuration

This is needed to init .max_radios in hw_params and onfigure external
interrupts for available pdev_ids.

Compile tested only.
Signed-off-by: default avatarAnilkumar Kolli <akolli@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1592316055-24958-2-git-send-email-kvalo@codeaurora.org
parent aed95297
...@@ -951,15 +951,15 @@ static int ath11k_ahb_probe(struct platform_device *pdev) ...@@ -951,15 +951,15 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
ath11k_ahb_init_qmi_ce_config(ab); ath11k_ahb_init_qmi_ce_config(ab);
ret = ath11k_ahb_config_irq(ab); ret = ath11k_core_init(ab);
if (ret) { if (ret) {
ath11k_err(ab, "failed to configure irq: %d\n", ret); ath11k_err(ab, "failed to init core: %d\n", ret);
goto err_ce_free; goto err_ce_free;
} }
ret = ath11k_core_init(ab); ret = ath11k_ahb_config_irq(ab);
if (ret) { if (ret) {
ath11k_err(ab, "failed to init core: %d\n", ret); ath11k_err(ab, "failed to configure irq: %d\n", ret);
goto err_ce_free; goto err_ce_free;
} }
......
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