ath10k: move napi_enable to hif_start for consistent pairing
authorGovind Singh <govinds@codeaurora.org>
Thu, 20 Sep 2018 05:04:25 +0000 (10:34 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 1 Oct 2018 14:04:23 +0000 (17:04 +0300)
There is unbalanced napi_{enable,disable}() behavior as they
are being called from hif_snoc_{power_up/stop).

The fix is to call napi_enable() from ath10k_snoc_hif_start()
so that it matches with napi_disable() being called from
ath10k_snoc_hif_stop().

Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/snoc.c

index b83edb9..3470310 100644 (file)
@@ -739,6 +739,7 @@ static void ath10k_snoc_hif_stop(struct ath10k *ar)
 
 static int ath10k_snoc_hif_start(struct ath10k *ar)
 {
+       napi_enable(&ar->napi);
        ath10k_snoc_irq_enable(ar);
        ath10k_snoc_rx_post(ar);
 
@@ -801,7 +802,6 @@ static int ath10k_snoc_hif_power_up(struct ath10k *ar)
                goto err_wlan_enable;
        }
 
-       napi_enable(&ar->napi);
        return 0;
 
 err_wlan_enable: