]> git.itanic.dy.fi Git - linux-stable/commit
Input: atkbd - use ab83 as id when skipping the getid command
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 Jan 2024 20:43:25 +0000 (21:43 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Jan 2024 21:16:10 +0000 (13:16 -0800)
commit58f65f9db7e0de366a5a115c2e2c0703858bba69
tree17b968572688634a27e814b42adf9265b4808fb9
parente2a2501af13cfeb1f21bb628db54c49d61949a53
Input: atkbd - use ab83 as id when skipping the getid command

Barnabás reported that the change to skip the getid command
when the controller is in translated mode on laptops caused
the Version field of his "AT Translated Set 2 keyboard"
input device to change from ab83 to abba, breaking a custom
hwdb entry for this keyboard.

Use the standard ab83 id for keyboards when getid is skipped
(rather then that getid fails) to avoid reporting a different
Version to userspace then before skipping the getid.

Fixes: 936e4d49ecbc ("Input: atkbd - skip ATKBD_CMD_GETID in translated mode")
Reported-by: Barnabás Pőcze <pobrn@protonmail.com>
Closes: https://lore.kernel.org/linux-input/W1ydwoG2fYv85Z3C3yfDOJcVpilEvGge6UGa9kZh8zI2-qkHXp7WLnl2hSkFz63j-c7WupUWI5TLL6n7Lt8DjRuU-yJBwLYWrreb1hbnd6A=@protonmail.com/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240116204325.7719-1-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/atkbd.c