[PATCH v2 00/10] platform/x86: alienware-wmi-wmax: HWMON support + DebugFS + Improvements

Kurt Borja
2025-02-25T22:25:13Z

Hi all,

It's been a busy week, but I finally finished v2.

The biggest change since v1 is Patch 08/10, which now uses custom HWMON
attributes.

As always thank you for your feedback and reviews :)

PD: I lost my changelog so I apologize if I missed something bellow.

---
Changes since v1:

[03/10]
- Minor correction in commit message

[04/10]
- Dropped overflow approach in favor of checking a hardcoded limit for
device resources

[07/10]
- Dropped status cache
- As Armin pointed out, operation 0x01 of GetFanSensors gives us the
count of temperature sensors related to a given fan. Use this to
retrieve related sensors for each fan into a bitmap and expose this
information through pwm*_auto_channels_temp attributes
- Use related temperature sensors to assign labels to fans
- Store available fan IDs in a bitmap for convenience

[08/10]
- Use custom attributes to expose pwm_boost
- Add pm_ops because if a user sets pwm_boost fans would remain *on*
after suspending

[10/10]
- Correct information about GetFanSensors method, based on Armin's
feedback

v1: https://lore.kernel.org/platform-driver-x86/20250208051614.10644-1-kuurtb@gmail.com/

Kurt Borja (10):
platform/x86: alienware-wmi-wmax: Rename thermal related symbols
platform/x86: alienware-wmi-wmax: Refactor is_awcc_thermal_mode()
platform/x86: alienware-wmi-wmax: Improve internal AWCC API
platform/x86: alienware-wmi-wmax: Modify supported_thermal_profiles[]
platform/x86: alienware-wmi-wmax: Improve platform profile probe
platform/x86: alienware-wmi-wmax: Add support for the "custom" thermal
profile
platform/x86: alienware-wmi-wmax: Add HWMON support
platform/x86: alienware-wmi-wmax: Add support for manual fan control
platform/x86: alienware-wmi-wmax: Add a DebugFS interface
platform/x86: alienware-wmi: Improve and update documentation

Documentation/wmi/devices/alienware-wmi.rst | 387 +++----
drivers/platform/x86/dell/Kconfig | 1 +
.../platform/x86/dell/alienware-wmi-wmax.c | 955 +++++++++++++++---
3 files changed, 948 insertions(+), 395 deletions(-)

base-commit: c86e269c4da6dca2beaf99bdc6fd9f0a9f69035f
--
2.48.1