The EliteDesk 800 G6 stores a raw WMI string within the ACPI object in its[ ... ]
BIOS corresponding to one instance of HPBIOS_PlatformEvents.Name. This is
evidently a valid way of representing a WMI data item as far as the Microsoft
ACPI-WMI mapper is concerned, but is preventing the driver from loading.
As this seems quite rare, add a machine-limited workaround for now.
Reported-by: Lukasz Stelmach <l.stelmach@xxxxxxxxxxx>
Closes: https://lore.kernel.org/linux-hwmon/7850a0bd-60e7-88f8-1d6c-0bb0e3234fdc@xxxxxxxxxxxx/
Signed-off-by: James Seo <james@xxxxxxxxxx>
---
+static bool is_raw_wmi_string(const acpi_object_type property_map[], int prop)
+{
+ const char *board_name;
+
+ if (property_map != hp_wmi_platform_events_property_map ||
+ prop != HP_WMI_PLATFORM_EVENTS_PROPERTY_NAME)
+ return false;
+
+ board_name = dmi_get_system_info(DMI_BOARD_NAME);
+ if (!board_name)
+ return false;
+
+ return !strcmp(board_name, HP_WMI_BOARD_NAME_ELITEDESK_800_G6);