summaryrefslogtreecommitdiff
path: root/drivers/block/ps3vram.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-04-04 17:38:31 +0300
committerHans de Goede <hdegoede@redhat.com>2021-04-06 23:10:21 +0300
commita3790a8a94fc0234c5d38013b48e74ef221ec84c (patch)
tree169d93e81bdbe0891b330226e25e4d62be8bb524 /drivers/block/ps3vram.c
parentd1635448f1105e549b4041aab930dbc6945fc635 (diff)
downloadlinux-a3790a8a94fc0234c5d38013b48e74ef221ec84c.tar.xz
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 <hdegoede@redhat.com> Reviewed-by: Elia Devito <eliadevito@gmail.com> Link: https://lore.kernel.org/r/20210404143831.25173-1-hdegoede@redhat.com
Diffstat (limited to 'drivers/block/ps3vram.c')
0 files changed, 0 insertions, 0 deletions