Skip to content

wifi: ath12k: ACPI support

Kalle Valo ath12k linux-wireless 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v8 Latest4 patches 8 repliesIn review

Changes in v8 from the cover letter

* rebase to ath-202404181528
* rewrite commit messages
* cleanup and improvements all over to match the ath12k style, including
error handling, naming and so on
* locate new place to call ath12k_acpi_[start|stop]()
* move wmi functions up in wmi.c file
* consolidate WMI functions using WMI_PDEV_SET_BIOS_INTERFACE_CMDID into ath12k_wmi_set_bios_cmd()
* ath12k_acpi_stop(): don't call acpi_remove_notify_handler() if we never installed the handler

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: ath12k: ACPI TAS supportdrivers/net/wireless/ath/ath12k/Makefile drivers/net/wireless/ath/ath12k/acpi.c drivers/net/wireless/ath/ath12k/acpi.h +6 more+356 -01 reply
2/4wifi: ath12k: ACPI SAR supportdrivers/net/wireless/ath/ath12k/acpi.c drivers/net/wireless/ath/ath12k/acpi.h drivers/net/wireless/ath/ath12k/core.h +2 more+244 -01 reply
3/4wifi: ath12k: ACPI CCA threshold supportdrivers/net/wireless/ath/ath12k/acpi.c drivers/net/wireless/ath/ath12k/acpi.h drivers/net/wireless/ath/ath12k/core.h +1 more+47 -01 reply
4/4wifi: ath12k: ACPI band edge channel power supportdrivers/net/wireless/ath/ath12k/acpi.c drivers/net/wireless/ath/ath12k/acpi.h drivers/net/wireless/ath/ath12k/core.h +1 more+46 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJeff Johnson
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/4] wifi: ath12k: ACPI support

From: Kalle Valo <[email protected]>

Through reading ACPI tables, implement Time-Average-SAR(TAS), BIOS SAR, configuration of CCA threshold and band edge channel power functionalities. This is enabled only on WCN7850.

TODO:

* test with ACPI support in hardware (I don't have such hardware), especially suspend and hibernation

v8:

* rebase to ath-202404181528
* rewrite commit messages
* cleanup and improvements all over to match the ath12k style, including
error handling, naming and so on
* locate new place to call ath12k_acpi_[start|stop]()
* move wmi functions up in wmi.c file
* consolidate WMI functions using WMI_PDEV_SET_BIOS_INTERFACE_CMDID into ath12k_wmi_set_bios_cmd()
* ath12k_acpi_stop(): don't call acpi_remove_notify_handler() if we never installed the handler

v7: https://patchwork.kernel.org/project/linux-wireless/cover/[email protected]/

* adjust the length of line
* add cpu_to_le32()

v6:

* remove code that is not called

v5:

* rebase to the latest tag

v4:

* revise commit log using imperative voice
* delete guid_is_null()

v3:

* remove unnecessary cpu_to_le32()
* adjust the order of the macros
* apply jeff's advice

v2:

* put <linux/acpi.h> in the include guard

Lingbo Kong (4):
wifi: ath12k: ACPI TAS support
wifi: ath12k: ACPI SAR support
wifi: ath12k: ACPI CCA threshold support
wifi: ath12k: ACPI band edge channel power support

 drivers/net/wireless/ath/ath12k/Makefile |   1 +
 drivers/net/wireless/ath/ath12k/acpi.c   | 394 +++++++++++++++++++++++
 drivers/net/wireless/ath/ath12k/acpi.h   |  76 +++++
 drivers/net/wireless/ath/ath12k/core.c   |   7 +
 drivers/net/wireless/ath/ath12k/core.h   |  18 ++
 drivers/net/wireless/ath/ath12k/hw.c     |  10 +
 drivers/net/wireless/ath/ath12k/hw.h     |   3 +
 drivers/net/wireless/ath/ath12k/wmi.c    | 143 ++++++++
 drivers/net/wireless/ath/ath12k/wmi.h    |  41 +++
 9 files changed, 693 insertions(+)
 create mode 100644 drivers/net/wireless/ath/ath12k/acpi.c
 create mode 100644 drivers/net/wireless/ath/ath12k/acpi.h

base-commit: c416602943dd36fbd13af7496430723935c867a3

Signature · 1 line
2.39.2