Skip to content

Support of ASUS TUF Gaming series laptops

Yurii Pavlovskyi linux-acpi linux-api linux-input lkml platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest13 patches 5 repliesIn review
  2. v311 patches 23 repliesSuperseded
  3. v111 patches 5 repliesSuperseded

Changes in v4 from the cover letter

* Rebase on for-next branch
* Extract local variable in patch 01
* Rename new method to "..._method3" and keep comma in struct declaration in patch 03 (NOTE: the arg2 does not fit on same line by 1 character)
* Patch "Improve DSTS WMI method ID detection":
- sort local variables
- use dev_info
- separate changes to wmi module in an own patch
- rename method ID constants and fix comment capitalization
* "Support WMI event queue": split into separate refactoring and new functionality patches, use dev_info as well
* "Organize code into sections": split out error handling refactoring
* "Enhance detection of thermal data": remove unreasonable refactoring and just change the currently used condition
* "Control RGB keyboard backlight": removed, will be posted afterwards. I will follow on the status of the multicolor framework, it does look promising for this.
* Mark URL references with "Link:"
* Minor corrections to commit messages

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13platform/x86: asus-wmi: Fix hwmon device cleanupdrivers/platform/x86/asus-wmi.c+4 -31 reply
2/13platform/x86: asus-wmi: Fix preserving keyboard backlight intensity on loaddrivers/platform/x86/asus-wmi.c+1 -21 reply
3/13platform/x86: asus-wmi: Increase input buffer size of WMI methodsdrivers/platform/x86/asus-wmi.c+9 -11 reply
4/13platform/x86: wmi: Add function to get _UID of WMI devicedrivers/platform/x86/wmi.c include/linux/acpi.h+20 -01 reply
5/13platform/x86: asus-wmi: Improve DSTS WMI method ID detectiondrivers/hid/hid-asus.c drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+23 -60 replies
6/13platform/x86: asus-wmi: Refactor WMI event handlingdrivers/platform/x86/asus-wmi.c+42 -240 replies
7/13platform/x86: asus-wmi: Support WMI event queuedrivers/platform/x86/asus-wmi.c+68 -50 replies
8/13platform/x86: asus-nb-wmi: Add microphone mute key codedrivers/platform/x86/asus-nb-wmi.c+2 -10 replies
9/13platform/x86: asus-wmi: Refactor error handlingdrivers/platform/x86/asus-wmi.c+1 -50 replies
10/13platform/x86: asus-wmi: Organize code into sectionsdrivers/platform/x86/asus-wmi.c+47 -420 replies
11/13platform/x86: asus-wmi: Enhance detection of thermal datadrivers/platform/x86/asus-wmi.c+5 -20 replies
12/13platform/x86: asus-wmi: Switch fan boost modeDocumentation/ABI/testing/sysfs-platform-asus-wmi drivers/platform/x86/asus-wmi.c include/linux/platform_data/x86/asus-wmi.h+154 -80 replies
13/13platform/x86: asus-wmi: Do not disable keyboard backlight on unloadingdrivers/platform/x86/asus-wmi.c+4 -00 replies

Reviews trailers per patch

3 of 13 patches have a Reviewed-by or Acked-by.

PatchDaniel Drake
1/13R-b
2/13R-b
3/13R-b
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

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

Read the v4 thread

Cover letter [PATCH v4 00/13] Support of ASUS TUF Gaming series laptops

Hi,

this is the fourth version of the patch series.

Changelog:
v4:
* Rebase on for-next branch
* Extract local variable in patch 01
* Rename new method to "..._method3" and keep comma in struct declaration in patch 03 (NOTE: the arg2 does not fit on same line by 1 character)
* Patch "Improve DSTS WMI method ID detection":
- sort local variables
- use dev_info
- separate changes to wmi module in an own patch
- rename method ID constants and fix comment capitalization
* "Support WMI event queue": split into separate refactoring and new functionality patches, use dev_info as well
* "Organize code into sections": split out error handling refactoring
* "Enhance detection of thermal data": remove unreasonable refactoring and just change the currently used condition
* "Control RGB keyboard backlight": removed, will be posted afterwards. I will follow on the status of the multicolor framework, it does look promising for this.
* Mark URL references with "Link:"
* Minor corrections to commit messages
v3:
* Use devm_* function in patch 01
* Detect DSTS/DCTS using _UID in patch 04
* Detect event queue by _UID as well in patch 05
* Rename poll function in patch 05
* Fix terminology in patches 09 and 10
* Correct commit messages
v2:
* Fix logging

INTRODUCTION
The support for this laptop series is currently non-existent, as the asus-nb-wmi driver (which is essentially configuration for asus-wmi) fails to load and multiple ACPI errors are logged in dmesg. This patch series adds pretty comprehensive support for these relatively new laptops, adds some code organization, and fixes a couple of bugs in the asus-wmi module.

Thread for V1/V2: https://lkml.org/lkml/2019/4/10/973
Thread for V3: https://lkml.org/lkml/2019/4/19/178

Yurii Pavlovskyi (13):
platform/x86: asus-wmi: Fix hwmon device cleanup platform/x86: asus-wmi: Fix preserving keyboard backlight intensity on
load
platform/x86: asus-wmi: Increase input buffer size of WMI methods platform/x86: wmi: Add function to get _UID of WMI device platform/x86: asus-wmi: Improve DSTS WMI method ID detection platform/x86: asus-wmi: Refactor WMI event handling platform/x86: asus-wmi: Support WMI event queue platform/x86: asus-nb-wmi: Add microphone mute key code platform/x86: asus-wmi: Refactor error handling platform/x86: asus-wmi: Organize code into sections platform/x86: asus-wmi: Enhance detection of thermal data platform/x86: asus-wmi: Switch fan boost mode platform/x86: asus-wmi: Do not disable keyboard backlight on unloading

 .../ABI/testing/sysfs-platform-asus-wmi       |  10 +
 drivers/hid/hid-asus.c                        |   2 +-
 drivers/platform/x86/asus-nb-wmi.c            |   3 +-
 drivers/platform/x86/asus-wmi.c               | 427 ++++++++++++++----
 drivers/platform/x86/wmi.c                    |  19 +
 include/linux/acpi.h                          |   1 +
 include/linux/platform_data/x86/asus-wmi.h    |   5 +-
 7 files changed, 374 insertions(+), 93 deletions(-)
Signature · 1 line
2.17.1