X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v2 0/3] platform/x86 acer-wmi: Improve platform profile handling
@ 2025-01-04 15:29 Hridesh MG
  2025-01-04 15:29 ` [PATCH v2 1/3] platform/x86: acer-wmi: use WMI calls for " Hridesh MG
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Hridesh MG @ 2025-01-04 15:29 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, Armin Wolf
  Cc: platform-driver-x86, linux-kernel, Shuah Khan, Hridesh MG

This patch improves the platform profile handling for laptops using the
Acer Predator interface by making the following changes - 

1) Using WMI calls to fetch the current platform profile instead of
   directly accessing it from the EC.
2) Using an ACPI bitmap to dynamically set platform_profile_choices.
3) Simplifying the cycling of platform profiles by making use of
   platform_profile_cycle()

v1->v2:
[1]
   - Fixed enum member alignment and reordered them

[2]
   - Made use of test_bit to check bitmap values
   - Replaced magic numbers with proper variables

Link to v1: https://lore.kernel.org/platform-driver-x86/20241231140442.10076-1-hridesh699@gmail.com/

Signed-off-by: Hridesh MG <hridesh699@gmail.com>
---
Hridesh MG (3):
      platform/x86: acer-wmi: use WMI calls for platform profile handling
      platform/x86: acer-wmi: use an ACPI bitmap to set the platform profile choices
      platform/x86: acer-wmi: simplify platform profile cycling

 drivers/platform/x86/acer-wmi.c | 270 ++++++++++++++++++++++++----------------
 1 file changed, 161 insertions(+), 109 deletions(-)
---
base-commit: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
change-id: 20250102-platform_profile-fc1e0aaf2900

Best regards,
-- 
Hridesh MG <hridesh699@gmail.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-01-05 13:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-04 15:29 [PATCH v2 0/3] platform/x86 acer-wmi: Improve platform profile handling Hridesh MG
2025-01-04 15:29 ` [PATCH v2 1/3] platform/x86: acer-wmi: use WMI calls for " Hridesh MG
2025-01-04 17:13   ` Kurt Borja
2025-01-05 11:19     ` Hridesh MG
2025-01-05 13:02       ` Armin Wolf
2025-01-04 15:29 ` [PATCH v2 2/3] platform/x86: acer-wmi: use an ACPI bitmap to set the platform profile choices Hridesh MG
2025-01-04 17:18   ` Kurt Borja
2025-01-05 13:06     ` Armin Wolf
2025-01-04 15:29 ` [PATCH v2 3/3] platform/x86: acer-wmi: simplify platform profile cycling Hridesh MG
2025-01-04 17:53   ` Kurt Borja
2025-01-04 18:19     ` Hridesh MG
2025-01-05  4:01       ` SungHwan Jung
2025-01-05  4:16         ` Hridesh MG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox