Skip to content
Snippets Groups Projects
Commit 53dea95c authored by Mikhail Khvainitski's avatar Mikhail Khvainitski Committed by Sasha Levin
Browse files

HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd


[ Upstream commit 2814646f ]

Previous attempt to autodetect well-behaving patched firmware
introduced in commit 46a0a2c9 ("HID: lenovo: Detect quirk-free fw
on cptkbd and stop applying workaround") has shown that there are
false-positives on original firmware (on both 1st gen and 2nd gen
keyboards) which causes the middle button click workaround to be
mistakenly disabled.

This commit adds explicit parameter to sysfs to control this
workaround.

Fixes: 46a0a2c9 ("HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround")
Fixes: 43527a00 ("HID: lenovo: Restrict detection of patched firmware only to USB cptkbd")
Signed-off-by: default avatarMikhail Khvainitski <me@khvoinitsky.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7007354d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment