[PATCH 0/2] platform/x86: Allow retrieving the number of WMI object instances

Armin Wolf posted 2 patches 2 years, 7 months ago
There is a newer version of this series
.../x86/dell/dell-wmi-sysman/sysman.c         | 13 +++---
drivers/platform/x86/wmi.c                    | 41 +++++++++++++++++++
include/linux/acpi.h                          |  2 +
include/linux/wmi.h                           |  2 +
4 files changed, 50 insertions(+), 8 deletions(-)
[PATCH 0/2] platform/x86: Allow retrieving the number of WMI object instances
Posted by Armin Wolf 2 years, 7 months ago
This patch series allows WMI drivers to retrieve the number of
WMI object instances. This functionality benefits several current
and upcoming WMI drivers, the dell-wmi-sysman driver is converted
to use this new API as an example.

The changes are compile-tested only, the change to the dell-wmi-sysman
driver also needs to be tested on real hardware.

Changes since RFC v2:
- modify wmi_instance_count() to return an integer

Armin Wolf (2):
  platform/x86: wmi: Allow retrieving the number of WMI object instances
  platform/x86: dell-sysman: Improve instance detection

 .../x86/dell/dell-wmi-sysman/sysman.c         | 13 +++---
 drivers/platform/x86/wmi.c                    | 41 +++++++++++++++++++
 include/linux/acpi.h                          |  2 +
 include/linux/wmi.h                           |  2 +
 4 files changed, 50 insertions(+), 8 deletions(-)

--
2.30.2
Re: [PATCH 0/2] platform/x86: Allow retrieving the number of WMI object instances
Posted by Hans de Goede 2 years, 7 months ago
Hi,

On 4/30/23 22:31, Armin Wolf wrote:
> This patch series allows WMI drivers to retrieve the number of
> WMI object instances. This functionality benefits several current
> and upcoming WMI drivers, the dell-wmi-sysman driver is converted
> to use this new API as an example.
> 
> The changes are compile-tested only, the change to the dell-wmi-sysman
> driver also needs to be tested on real hardware.
> 
> Changes since RFC v2:
> - modify wmi_instance_count() to return an integer

Thank you for your patch-series, I've applied the series to my
review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans




> Armin Wolf (2):
>   platform/x86: wmi: Allow retrieving the number of WMI object instances
>   platform/x86: dell-sysman: Improve instance detection
> 
>  .../x86/dell/dell-wmi-sysman/sysman.c         | 13 +++---
>  drivers/platform/x86/wmi.c                    | 41 +++++++++++++++++++
>  include/linux/acpi.h                          |  2 +
>  include/linux/wmi.h                           |  2 +
>  4 files changed, 50 insertions(+), 8 deletions(-)
> 
> --
> 2.30.2
>