diff options
author | Dmitry Torokhov <dtor@chromium.org> | 2019-09-13 15:03:15 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2019-10-01 16:13:49 +0200 |
commit | 38e57f0693ad1b9a785b4f542ec019c5fdf91d57 (patch) | |
tree | 13cb03beaee3a4ef69af7b38d736a13e92450ead /scripts/gdb/linux/proc.py | |
parent | 1ad0bc78948652edc3067b6b49ba31b1598faa4a (diff) |
HID: google: whiskers: more robust tablet mode detection
The USB interface may get detected before the platform/EC one, so let's
note the state of the base (if we receive event) and use it to correctly
initialize the tablet mode switch state.
Also let's start the HID interface immediately when probing, this will
ensure that we correctly process "base folded" events that may be sent
as we initialize the base. Note that this requires us to add a remove()
function where we stop and close the hardware and switch the LED
registration away from devm interface as we need to make sure that we
destroy the LED instance before we stop the hardware.
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions