kernel_samsung_a53x/drivers/platform
Hans de Goede 0333d5114f platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting
commit fdcc0602d64f22185f61c70747214b630049cc33 upstream.

Commit 1ea0d3b46798 ("platform/x86: asus-wmi: Simplify tablet-mode-switch
handling") unified the asus-wmi tablet-switch handling, but it did not take
into account that the value returned for the kbd_dock_devid WMI method is
inverted where as the other ones are not inverted.

This causes asus-wmi to report an inverted tablet-switch state for devices
which use the kbd_dock_devid, which causes libinput to ignore touchpad
events while the affected T10x model 2-in-1s are docked.

Add inverting of the return value in the kbd_dock_devid case to fix this.

Fixes: 1ea0d3b46798 ("platform/x86: asus-wmi: Simplify tablet-mode-switch handling")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230120143441.527334-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:11:47 +01:00
..
chrome Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
goldfish Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mellanox mlxbf-bootctl: correctly identify secure boot with development keys 2024-11-18 12:11:39 +01:00
mips Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
olpc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86 platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting 2024-11-18 12:11:47 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00