OSDN Git Service

platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 1 Dec 2020 13:57:27 +0000 (14:57 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 2 Dec 2020 12:09:41 +0000 (13:09 +0100)
commitfe6000990394639ed374cb76c313be3640714f47
treed3b7642256864a3924ef2b397786d6b8db5d9c11
parent912b341585e302ee44fc5a2733f7bcf505e2c86f
platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12

This 2-in-1 model (Product name: Switch SA5-271) features a SW_TABLET_MODE
that works as it would be expected, both when detaching the keyboard and
when folding it behind the tablet body.

It used to work until the introduction of the allow list at
commit 8169bd3e6e193 ("platform/x86: intel-vbtn: Switch to an allow-list
for SW_TABLET_MODE reporting"). Add this model to it, so that the Virtual
Buttons device announces the EV_SW features again.

Fixes: 8169bd3e6e193 ("platform/x86: intel-vbtn: Switch to an allow-list for SW_TABLET_MODE reporting")
Cc: stable@vger.kernel.org
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Link: https://lore.kernel.org/r/20201201135727.212917-1-carlosg@gnome.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel-vbtn.c