Commit c07145fd authored by José Expósito's avatar José Expósito Committed by sanglipeng
Browse files

HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

stable inclusion
from stable-v5.10.161
commit 7c3a523c9b19ba94c3cade5b2d4612bedcf22e21
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7P7OH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7c3a523c9b19ba94c3cade5b2d4612bedcf22e21



--------------------------------

[ Upstream commit 3405a4be ]

Commit f7d8e387 ("HID: uclogic: Switch to Digitizer usage for
styluses") changed the usage used in UCLogic from "Pen" to "Digitizer".

However, the IS_INPUT_APPLICATION() macro evaluates to false for
HID_DG_DIGITIZER causing issues with the XP-Pen Star G640 tablet.

Add the HID_QUIRK_HIDINPUT_FORCE quirk to bypass the
IS_INPUT_APPLICATION() check.

Reported-by: default avatarTorge Matthies <openglfreak@googlemail.com>
Reported-by: default avatarAlexander Zhang <alex@alexyzhang.dev>
Tested-by: default avatarAlexander Zhang <alex@alexyzhang.dev>
Signed-off-by: default avatarJosé Expósito <jose.exposito89@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d61403c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment