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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:42:47 +0000 (07:42 -0800)
commit451d498b7b10160155bf3fd4d25cee5ae5a129d7
tree256e5436885718755cfe5741efd7bf786b57a184
parent3e6250bcd163d96062d156c1d6c2cbd83f2e66ad
ath10k: fix NAPI enable/disable symmetry for AHB interface

[ Upstream commit a7595a820b07db9ac0d8f479ff62002bdd32a05a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/ahb.c