diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-01-15 19:18:49 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-01-25 23:34:32 +0300 |
commit | 3a2f53cd03101f6a7cc34c558b0dbfbaca798165 (patch) | |
tree | 68e594744a51e83b0b93f0ad7f4fd1091cc27ac6 /drivers/pinctrl/meson/pinctrl-meson8.c | |
parent | 034b8c2e7b06777775c55cd2db2b6a98f4791b5f (diff) | |
download | linux-3a2f53cd03101f6a7cc34c558b0dbfbaca798165.tar.xz |
platform/x86: intel-vbtn: Add alternative method to enable switches
Some 2-in-1s have a broken VGBS method, so we cannot get an initial
state for the switches from them. Reporting the wrong initial state for
SW_TABLET_MODE causes serious problems (touchpad and/or keyboard events
being ignored by userspace when reporting SW_TABLET_MODE=1), so on these
devices we cannot register an input-dev for the switches at probe time.
We can however register an input-dev for the switches as soon as we
receive the first switches event, because then we will know the state.
Note this mirrors the behavior of recent changs to the intel-hid driver
which also registers a separate switches input-dev on receiving the
first event on machines with a broken VGBS method.
Cc: Elia Devito <eliadevito@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210115161850.117614-3-hdegoede@redhat.com
Diffstat (limited to 'drivers/pinctrl/meson/pinctrl-meson8.c')
0 files changed, 0 insertions, 0 deletions