HID: intel-ish-hid: ipc: only enable IRQ wakeup when requested
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 30 Nov 2021 06:01:17 +0000 (07:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Dec 2021 09:57:05 +0000 (10:57 +0100)
commit6892f8e27d6e32e16260a5c3cc24ca96ed9ec336
treec80ed129fefeddbbf0e90bba60370c4bfa286cc1
parentd38f90239254428dc52be3597ea7920b4d39af95
HID: intel-ish-hid: ipc: only enable IRQ wakeup when requested

commit 086e81f6b90e41a07a1a885bb11e93daa6915747 upstream.

Fixes spurious wakeups from s0ix on Lenovo ThinkPad X1 Cargon Gen 9 on
lid close.

These wakeups are generated by interrupts from the ISH on changes to the
lid status.

By disabling the wake IRQ from the ISH we inhibit these spurious
wakeups while keeping the resume from LID open through the ACPI
interrupt.

Reports on the Lenovo forums indicate that Lenovo ThinkPad X1 Yoga Gen6
is also affected.

Fixes: ae02e5d40d5f ("HID: intel-ish-hid: ipc layer")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214855
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20211130060117.3026-1-linux@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/intel-ish-hid/ipc/pci-ish.c