linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hid-asus: asus-wmi: refactor Ally suspend/resume
@ 2025-02-26  1:01 Luke Jones
  2025-02-26  1:01 ` [PATCH v2 1/2] hid-asus: check ROG Ally MCU version and warn Luke Jones
  2025-02-26  1:01 ` [PATCH v2 2/2] platform/x86: asus-wmi: Refactor Ally suspend/resume Luke Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Luke Jones @ 2025-02-26  1:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: hdegoede, ilpo.jarvinen, platform-driver-x86, linux-input,
	bentiss, jikos, mario.limonciello, Luke Jones

This short series refactors the Ally suspend/resume functionality in the
asus-wmi driver along with adding support for ROG Ally MCU version checking.

The version checking is then used to toggle the use of older CSEE call hacks
that were initially used to combat Ally suspend/wake issues arising from the MCU
not clearing a particular flag on resume. ASUS have since corrected this
especially for Linux in newer firmware versions.

- hid-asus requests the MCU version and displays a warning if the version is
  older than the one that fixes the issue.
- hid-asus awill also toggle the CSEE hack off, and mcu_powersave to on if the
version is high enough.

- Changelog:
  + V2:
    - Adjust warning message to explicitly mention suspend issues
    - Use switch/case block to set min_version
      - Set min_version to 0 by default and toggle hacks off

Luke D. Jones (2):
  hid-asus: check ROG Ally MCU version and warn
  platform/x86: asus-wmi: Refactor Ally suspend/resume

 drivers/hid/hid-asus.c                     | 107 +++++++++++++++++-
 drivers/platform/x86/asus-wmi.c            | 124 ++++++++++++++-------
 include/linux/platform_data/x86/asus-wmi.h |  15 +++
 3 files changed, 205 insertions(+), 41 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-02-26  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26  1:01 [PATCH v2 0/2] hid-asus: asus-wmi: refactor Ally suspend/resume Luke Jones
2025-02-26  1:01 ` [PATCH v2 1/2] hid-asus: check ROG Ally MCU version and warn Luke Jones
2025-02-26  7:00   ` Mario Limonciello
2025-02-26  1:01 ` [PATCH v2 2/2] platform/x86: asus-wmi: Refactor Ally suspend/resume Luke Jones
2025-02-26  7:05   ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).