linux-stable/drivers/platform
Hans de Goede f9f2420a34 platform/x86: intel: hid: Always call BTNL ACPI method
[ Upstream commit e3ab18de2b ]

On a HP Elite Dragonfly G2 the 0xcc and 0xcd events for SW_TABLET_MODE
are only send after the BTNL ACPI method has been called.

Likely more devices need this, so make the BTNL ACPI method unconditional
instead of only doing it on devices with a 5 button array.

Note this also makes the intel_button_array_enable() call in probe()
unconditional, that function does its own priv->array check. This makes
the intel_button_array_enable() call in probe() consistent with the calls
done on suspend/resume which also rely on the priv->array check inside
the function.

Reported-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Closes: https://lore.kernel.org/platform-driver-x86/20230712175023.31651-1-maxtram95@gmail.com/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230715181516.5173-1-hdegoede@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:47:58 +02:00
..
chrome platform/chrome: fix double-free in chromeos_laptop_prepare() 2022-10-26 13:19:27 +02:00
goldfish
mellanox platform/mellanox: mlxreg-io: Fix argument base in kstrtou32() call 2021-10-20 11:23:04 +02:00
mips MIPS: Loongson: Fix return value of loongson_hwmon_init 2020-01-27 14:51:21 +01:00
olpc platform/olpc: Fix uninitialized data in debugfs write 2022-08-25 11:15:18 +02:00
x86 platform/x86: intel: hid: Always call BTNL ACPI method 2023-09-23 10:47:58 +02:00
Kconfig
Makefile