platform/x86: wmi: Support reading/writing 16 bit EC values
authorArmin Wolf <W_Armin@gmx.de>
Thu, 14 Mar 2024 18:45:37 +0000 (19:45 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 25 Mar 2024 14:53:51 +0000 (15:53 +0100)
commitc663b26972eae7d2a614f584c92a266fe9a2d44c
tree46e1cb02e8774e6f141b65c8d496c0682b7fcd67
parent0cd33df4e406ee4b705ee15d942a1ae8387a1d8b
platform/x86: wmi: Support reading/writing 16 bit EC values

The ACPI EC address space handler currently only supports
reading/writing 8 bit values. Some firmware implementations however
want to access for example 16 bit values, which is perfectly legal
according to the ACPI spec.

Add support for reading/writing such values.

Tested on a Dell Inspiron 3505 and a Asus Prime B650-Plus.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20240314184538.2933-1-W_Armin@gmx.de
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/wmi.c