[PATCH 0/6] Preparations for fixing WMI reprobing issue

From: Armin Wolf
Date: Sat Oct 07 2023 - 19:40:07 EST


This patch series contains preparations for fixing the WMI reprobing
issue discussed here:

https://lkml.kernel.org/1252c8fb-8d5f-98ad-b24a-5fabec2e1c8b@xxxxxx

It mainly aims to decouple some parts of the WMI subsystem from the
wmi_block_list, which is going to get replaced in the future. It also
fixes some issues, like a probe failure when failing to register WMI
devices and a potential issue when opening the wmi char device.

The changes where tested on a Dell Inspiron 3505 and appear to work,
but additional feedback especially on the third patch is appreciated.

Armin Wolf (6):
platform/x86: wmi: Update MAINTAINERS entry
platform/x86: wmi: Decouple probe deferring from wmi_block_list
platform/x86: wmi: Fix refcounting of WMI devices in legacy functions
platform/x86: wmi: Fix probe failure when failing to register WMI
devices
platform/x86: wmi: Fix opening of char device
platform/x86: wmi: Decouple WMI device removal from wmi_block_list

MAINTAINERS | 3 +-
drivers/platform/x86/wmi.c | 263 ++++++++++++++++++++++---------------
2 files changed, 159 insertions(+), 107 deletions(-)

--
2.39.2