ath10k: Remove voltage regulator votes during wifi disable
authorRakesh Pillai <pillair@codeaurora.org>
Fri, 11 Dec 2020 19:00:30 +0000 (00:30 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Dec 2020 06:50:02 +0000 (08:50 +0200)
commit5f1aa93ffa1f36577d0c18e91269f0ffd491e822
treedc78834ee76c9bb392c3e64632fd3e4210b7557e
parent31561e8557cd1eeba5806ac9ce820f8323b2201b
ath10k: Remove voltage regulator votes during wifi disable

When the wlan is disabled, i.e when all the interfaces are
deleted, voltage regulator votes are not removed. This leads
to more power consumption even when wlan is disabled.

Move the adding/removing of voltage regulator votes as part
of hif power on/off in SNOC targets, so that these voltage
regulator votes are there only when wlan is enabled.

Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1607713230-18382-1-git-send-email-pillair@codeaurora.org
drivers/net/wireless/ath/ath10k/snoc.c