]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath11k: determine PM policy based on machine model
authorBaochen Qiang <quic_bqiang@quicinc.com>
Fri, 28 Mar 2025 05:32:24 +0000 (13:32 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Mon, 31 Mar 2025 21:43:12 +0000 (14:43 -0700)
commitce8669a27016354dfa8bf3c954255cb9f3583bae
treecf8f7b8f54c184a96b22e176155acb20281e66fa
parent79ce49513222a89338e78bc7c7cb4a0fb4d6cb23
wifi: ath11k: determine PM policy based on machine model

To handle the Lenovo unexpected wakeup issue [1], previously we revert
commit 166a490f59ac ("wifi: ath11k: support hibernation"). So currently
WLAN target is put into WoWLAN mode during suspend. This is a temporary
solution as it does not work on machines where WLAN power is cut off.

The thought here is that we do WoWLAN suspend on Lenovo machines while
do non-WoWLAN suspend (which is done in the reverted commit) on other
machines. This requires us to identify Lenovo machines from others.
For that purpose, read board vendor and product name from DMI interface,
match it against all known affected machines. If there is a match, choose
WoWLAN suspend mode, else choose non-WoWLAN mode. Save the mode in ab
for later reference.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=219196

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30

Tested-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Link: https://patch.msgid.link/20250328-ath11k-bring-hibernation-back-v3-1-23405ae23431@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h