[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240511023726.7408-2-lsanche@lyndeno.ca>
Date: Fri, 10 May 2024 20:36:50 -0600
From: Lyndon Sanche <lsanche@...deno.ca>
To: lsanche@...deno.ca
Cc: mario.limonciello@....com,
pali@...nel.org,
W_Armin@....de,
srinivas.pandruvada@...ux.intel.com,
ilpo.jarvinen@...ux.intel.com,
lkp@...el.com,
hdegoede@...hat.com,
Yijun.Shen@...l.com,
Matthew Garrett <mjg59@...f.ucam.org>,
Heiner Kallweit <hkallweit1@...il.com>,
Vegard Nossum <vegard.nossum@...cle.com>,
Jonathan Corbet <corbet@....net>,
platform-driver-x86@...r.kernel.org,
linux-kernel@...r.kernel.org,
Dell.Client.Kernel@...l.com
Subject: [PATCH v6 0/2] platform/x86: dell-laptop: Implement platform_profile
Some Dell laptops support configuration of preset fan modes through
smbios tables.
If the platform supports these fan modes, set up platform_profile to
change these modes. If not supported, skip enabling platform_profile.
v6:
- Add ACPI dependency for dell-laptop
- Add and use helper symbol for checking supported commands
v5:
- Fix indent in smbios-thermal-ctl comment
- Remove linux/wmi.h include
- Add 'select ACPI_PLATFORM_PROFILE' to Dell KConfig
v4:
- Make thermal_init and thermal_cleanup static
- Rearrange order of added includes, did not edit current includes
- Include bits.h
- Switch comment style
- Return error if platform_profile registering failed
- Add thermal calls to call_blacklist
- Align defines with tabs
- Correct separation of function and error handling
- Propagate error codes up
v3:
- Convert smbios-thermal-ctl docs to multiline comment and wrap
- Change thermal_mode_bits enum to directly be BIT() values
- Convert related code to use this
- Use FIELD_GET/PREP and GENNMASK for getting/setting thermal modes
- Correct offset for getting current ACC mode, setting offset
unchanged
- Check if thermal_handler is allocated before freeing and
unregistering platform_profile
v2:
- Wrap smbios-thermal-ctl comment
- Return proper error code when invalid state returned
- Simplify platform_profile_get returns
- Propogate ENOMEM error
Lyndon Sanche (2):
platform/x86: dell-smbios: Add helper for checking supported commands
platform/x86: dell-laptop: Implement platform_profile
drivers/platform/x86/dell/Kconfig | 2 +
drivers/platform/x86/dell/dell-laptop.c | 242 +++++++++++++++++++
drivers/platform/x86/dell/dell-smbios-base.c | 7 +
drivers/platform/x86/dell/dell-smbios.h | 2 +
4 files changed, 253 insertions(+)
--
2.42.0
Powered by blists - more mailing lists