kernel_samsung_a53x/drivers/input
Hans de Goede 9698ed3d34 Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
commit 683cd8259a9b883a51973511f860976db2550a6e upstream.

After commit 936e4d49ecbc ("Input: atkbd - skip ATKBD_CMD_GETID in
translated mode") the keyboard on Dell XPS 13 9350 / 9360 / 9370 models
has stopped working after a suspend/resume.

The problem appears to be that atkbd_probe() fails when called
from atkbd_reconnect() on resume, which on systems where
ATKBD_CMD_GETID is skipped can only happen by ATKBD_CMD_SETLEDS
failing. ATKBD_CMD_SETLEDS failing because ATKBD_CMD_GETID was
skipped is weird, but apparently that is what is happening.

Fix this by also skipping ATKBD_CMD_SETLEDS when skipping
ATKBD_CMD_GETID.

Fixes: 936e4d49ecbc ("Input: atkbd - skip ATKBD_CMD_GETID in translated mode")
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Closes: https://lore.kernel.org/linux-input/0aa4a61f-c939-46fe-a572-08022e8931c7@molgen.mpg.de/
Closes: https://bbs.archlinux.org/viewtopic.php?pid=2146300
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218424
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2260517
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240126160724.13278-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:13:27 +01:00
..
gameport Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input_boost Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
joystick Input: xpad - add Razer Wolverine V2 support 2024-11-18 12:12:17 +01:00
keyboard Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID 2024-11-18 12:13:27 +01:00
misc Input: soc_button_array - add mapping for airplane mode button 2024-11-18 12:12:01 +01:00
mouse Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport 2024-11-18 10:58:46 +01:00
rmi4 Input: synaptics-rmi4 - fix use after free in rmi_unregister_function() 2024-11-18 11:43:07 +01:00
sec_input Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serio Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU 2024-11-18 12:13:27 +01:00
tablet Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
touchscreen Input: goodix - ensure int GPIO is in input for gpio_count == 1 && gpio_int_idx == 0 case 2024-11-08 11:25:50 +01:00
apm-power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evbug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ff-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ff-memless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-compat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-leds.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-mt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-polldev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-poller.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-poller.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
joydev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
matrix-keymap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mousedev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sparse-keymap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00