]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 7 Jan 2021 14:44:38 +0000 (22:44 +0800)
committerHans de Goede <hdegoede@redhat.com>
Wed, 13 Jan 2021 09:23:33 +0000 (10:23 +0100)
commit2416fc554ee24103be3293f8f17edc6edbcf155a
tree357cb55b31e02dbba6f2f90a1c75f22e4a5f6595
parent7b401a1c49d9d4570e4180e39095c0da1f567a3c
platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634

Newer ideapads (e.g.: Yoga 14s, 720S 14) come with ELAN0634 touchpad do not
use EC to switch touchpad.

Reading VPCCMD_R_TOUCHPAD will return zero thus touchpad may be blocked
unexpectedly.
Writing VPCCMD_W_TOUCHPAD may cause a spurious key press.

Add has_touchpad_switch to workaround these machines.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: stable@vger.kernel.org # 5.4+
--
v2: Specify touchpad to ELAN0634
v3: Stupid missing ! in v2
v4: Correct acpi_dev_present usage (Hans)
Link: https://lore.kernel.org/r/20210107144438.12605-1-jiaxun.yang@flygoat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c