aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2021-04-04 16:38:31 +0200
committerHans de Goede <[email protected]>2021-04-06 18:02:57 +0200
commite72457fce9c339193b8da34967ca09e901cb3ed9 (patch)
treeea73fe5b47400ac98ebb53c1ad81b3a4dced60ca /tools/perf/scripts/python/netdev-times.py
parent36974daf53888e5eac986517b5ffac5bdd47b74d (diff)
platform/x86: intel-hid: Fix spurious wakeups caused by tablet-mode events during suspend
Some devices send (duplicate) tablet-mode events when moved around even though the mode has not changed; and they do this even when suspended. Change the tablet-mode event handling when priv->wakeup_mode is set to update the switch state in case it changed and then return immediately (without calling pm_wakeup_hard_event()) to avoid spurious wakeups. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212537 Fixes: 537b0dd4729e ("platform/x86: intel-hid: Add support for SW_TABLET_MODE") Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Elia Devito <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions