kernel_samsung_a53x/drivers/platform/x86
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
..
intel_speed_select_if Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acer-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acer-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acerhdf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alienware-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amilo-rfkill.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apple-gmux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-nb-wmi.c platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2024-11-18 12:11:27 +01:00
asus-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asus-wmi.c platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting 2024-11-18 12:11:47 +01:00
asus-wmi.h platform/x86: asus-wmi: Add support for ROG X13 tablet mode 2024-11-18 12:11:27 +01:00
classmate-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compal-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcdbas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcdbas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-rbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-rbtn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-smm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smbios.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-smo8800.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-aio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-descriptor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-descriptor.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi-led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dell_rbu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeepc-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeepc-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fujitsu-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fujitsu-tablet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpd-pocket-fan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdaps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp-wireless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hp_accel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
huawei-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c-multi-instantiate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibm_rtl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ideapad-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-hid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-rst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-smartconnect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-uncore-frequency.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-vbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-wmi-sbl-fw-update.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-wmi-thunderbolt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_atomisp2_led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_atomisp2_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_bxtwc_tmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_microb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_cht_int33fe_typec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_chtdc_ti_pwrbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_int0002_vgpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ips.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_ips.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_menlow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mid_powerbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mid_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_mrfld_pwrbtn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_oaktrail.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_pmc_core_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_punit_ipc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_ipc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_ipcutil.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_pcidrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_telemetry_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_telemetry_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_telemetry_pltdrv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_turbo_max_3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code 2024-11-18 12:11:27 +01:00
lg-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msi-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mxm-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
panasonic-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcengines-apuv2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
peaq-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmc_atom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung-q10.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sony-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3_button.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surface3_power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
surfacepro3_button.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
system76_acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tc1100-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thinkpad_acpi.c platform/x86: thinkpad_acpi: Add battery quirk for Thinkpad X120e 2024-11-18 11:43:12 +01:00
topstar-laptop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_bluetooth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
toshiba_haps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the Positivo C4128B 2024-11-08 11:26:17 +01:00
wmi-bmof.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wmi.c platform/x86: wmi: Fix opening of char device 2024-11-18 11:42:54 +01:00
xiaomi-wmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xo1-rfkill.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xo15-ebook.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00