2022-08-25 11:25:48

by Manikanta Pubbisetty

[permalink] [raw]
Subject: [PATCH v2 0/4] ath11k: Enable low power mode when WLAN is not active

Currently, WLAN chip is powered once during driver probe and is kept
ON (powered) always even when WLAN is not active; keeping the chip
powered ON all the time will consume extra power which is not
desirable for battery operated devices. Same is the case with non-WoW
suspend, chip will not be put into low power mode when the system is
suspended resulting in higher battery drain.

Send QMI MODE OFF command to firmware during WiFi OFF to put device
into low power mode.

Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1
Manikanta Pubbisetty (4):
ath11k: Fix double free issue during SRNG deinit
ath11k: Move hardware initialization logic to start()
ath11k: Enable low power mode when WLAN is not active
ath11k: Fix failed to parse regulatory event print
---
V2:
- "Enable low power mode when WLAN is not active" has been enabled only for WCN6750
as the device shutdown and turn-on changes are not same for all chipsets in ath11k.
A future patch will be sent to enable the logic for other devices.

- Rebased on ToT

drivers/net/wireless/ath/ath11k/ahb.c | 45 +++++
drivers/net/wireless/ath/ath11k/core.c | 229 ++++++++++++++++++-------
drivers/net/wireless/ath/ath11k/core.h | 8 +-
drivers/net/wireless/ath/ath11k/hal.c | 1 +
drivers/net/wireless/ath/ath11k/hif.h | 12 ++
drivers/net/wireless/ath/ath11k/mac.c | 33 ++--
drivers/net/wireless/ath/ath11k/pci.c | 26 +++
drivers/net/wireless/ath/ath11k/reg.c | 2 +
8 files changed, 264 insertions(+), 92 deletions(-)

--
2.37.1