ath10k: fix NAPI enable/disable symmetry for AHB interface
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Mon, 20 Mar 2017 15:22:46 +0000 (20:52 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 5 Apr 2017 07:33:26 +0000 (10:33 +0300)
commita7595a820b07db9ac0d8f479ff62002bdd32a05a
treeee3182b946790f1983a1c42c49b935c553304b60
parentb51040fc375c194e20164be489668d4d28001f53
ath10k: fix NAPI enable/disable symmetry for AHB interface

Move NAPI enable to 'ath10k_ahb_hif_start' from
'ath10k_ahb_hif_power_up'. This is to maintain the symmetry
of calling napi_enable() from ath10k_ahb_hif_start() so that it
matches with  napi_disable() being called from ath10k_pci_hif_stop().

This change is based on the crash fix from Kalle for PCI interface in
commit 1427228d5869 ("ath10k: fix napi crash during rmmod when probe
firmware fails").

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/ahb.c