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

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
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -951,15 +951,15 @@ static int ath11k_ahb_probe(struct platform_device *pdev)

	ath11k_ahb_init_qmi_ce_config(ab);

	ret = ath11k_ahb_config_irq(ab);
	ret = ath11k_core_init(ab);
	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;
	}

	ret = ath11k_core_init(ab);
	ret = ath11k_ahb_config_irq(ab);
	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;
	}