platform/x86: wmi: Ignore duplicated GUIDs in legacy matches
authorArmin Wolf <W_Armin@gmx.de>
Mon, 26 Feb 2024 19:35:55 +0000 (20:35 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Mar 2024 10:47:33 +0000 (12:47 +0200)
commit928439582b3133a5e845ec15ee6eb6838651024f
tree9088ca4f1f02f151218053e18448612ac9723e30
parentf492f5f3e4e54043baeb38bfb494b2f959a636b7
platform/x86: wmi: Ignore duplicated GUIDs in legacy matches

When matching a WMI device to a GUID used by the legacy GUID-based
API, devices with a duplicated GUID should be ignored.

Add an additional WMI device flag signaling that the GUID used by
the WMI device is also used by another WMI device. Ignore such
devices inside the match functions used by the legacy GUID-based API.

Tested on a ASUS Prime B650-Plus.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240226193557.2888-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c