On 4/18/2024 9:20 AM, Kalle Valo wrote: > From: Lingbo Kong <quic_lingbok@xxxxxxxxxxx> > > Currently, ath12k does not support Time-Average-SAR (TAS). In order to enable > TAS read the tables from ACPI and send them to the firmware using > WMI_PDEV_SET_BIOS_INTERFACE_CMDID command. Besides, ath12k registers an ACPI > event callback so that ACPI can notify ath12k to get the updated SAR power > table and sends it to the firmware when the device state is changed. > > ACPI is only enabled for WCN7850 using struct ath12k_hw_params::acpi_guid > field. Most likely QCN9274 will never support ACPI as the chip is not used in > laptops. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Lingbo Kong <quic_lingbok@xxxxxxxxxxx> > Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx> > --- > drivers/net/wireless/ath/ath12k/Makefile | 1 + > drivers/net/wireless/ath/ath12k/acpi.c | 216 +++++++++++++++++++++++ > drivers/net/wireless/ath/ath12k/acpi.h | 45 +++++ > drivers/net/wireless/ath/ath12k/core.c | 7 + > drivers/net/wireless/ath/ath12k/core.h | 13 ++ > drivers/net/wireless/ath/ath12k/hw.c | 10 ++ > drivers/net/wireless/ath/ath12k/hw.h | 3 + > drivers/net/wireless/ath/ath12k/wmi.c | 44 +++++ > drivers/net/wireless/ath/ath12k/wmi.h | 17 ++ > 9 files changed, 356 insertions(+) > create mode 100644 drivers/net/wireless/ath/ath12k/acpi.c > create mode 100644 drivers/net/wireless/ath/ath12k/acpi.h Pending update of the copyright on these two new files, Acked-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>