ath10k: improve power save performance for sdio
authorWen Gong <wgong@codeaurora.org>
Thu, 16 Apr 2020 11:50:57 +0000 (14:50 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Apr 2020 12:03:57 +0000 (15:03 +0300)
commit22f28076b6c3f86107424b3b1ddfd90f2628f354
tree396b93802373422e4040c5f70ab72a6af54fae12
parent557e171434eb9bb43dbe71361775ae21ae95d4ed
ath10k: improve power save performance for sdio

This patch is to set register to allow the mbox enter sleep status
if it does not have tx traffic and wakeup it if tx traffic arrive.
After mbox enter sleep status, the soc will enter sleep status by
firmware, this will save power. The power consume drops from about
90mW to about 10mW with this patch.

This patch only effect sdio chip.

Tested with QCA6174 SDIO with firmware WLAN.RMH.4.4.1-00029.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1587037859-28873-3-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath10k/sdio.c
drivers/net/wireless/ath/ath10k/sdio.h