]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2024 01:38:11 +0000 (02:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2024 01:38:11 +0000 (02:38 +0100)
added patches:
platform-x86-dell-wmi-ignore-suspend-notifications.patch

queue-6.1/platform-x86-dell-wmi-ignore-suspend-notifications.patch [new file with mode: 0644]
queue-6.1/series

diff --git a/queue-6.1/platform-x86-dell-wmi-ignore-suspend-notifications.patch b/queue-6.1/platform-x86-dell-wmi-ignore-suspend-notifications.patch
new file mode 100644 (file)
index 0000000..a6675ca
--- /dev/null
@@ -0,0 +1,44 @@
+From a7990957fa53326fe9b47f0349373ed99bb69aaa Mon Sep 17 00:00:00 2001
+From: Armin Wolf <W_Armin@gmx.de>
+Date: Tue, 15 Oct 2024 00:05:29 +0200
+Subject: platform/x86: dell-wmi: Ignore suspend notifications
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Armin Wolf <W_Armin@gmx.de>
+
+commit a7990957fa53326fe9b47f0349373ed99bb69aaa upstream.
+
+Some machines like the Dell G15 5155 emit WMI events when
+suspending/resuming. Ignore those WMI events.
+
+Tested-by: siddharth.manthan@gmail.com
+Signed-off-by: Armin Wolf <W_Armin@gmx.de>
+Acked-by: Pali Rohár <pali@kernel.org>
+Link: https://lore.kernel.org/r/20241014220529.397390-1-W_Armin@gmx.de
+Reviewed-by: Hans de Goede <hdegoede@redhat.com>
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/platform/x86/dell/dell-wmi-base.c |    9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+--- a/drivers/platform/x86/dell/dell-wmi-base.c
++++ b/drivers/platform/x86/dell/dell-wmi-base.c
+@@ -264,6 +264,15 @@ static const struct key_entry dell_wmi_k
+       /*Speaker Mute*/
+       { KE_KEY, 0x109, { KEY_MUTE} },
++      /* S2Idle screen off */
++      { KE_IGNORE, 0x120, { KEY_RESERVED }},
++
++      /* Leaving S4 or S2Idle suspend */
++      { KE_IGNORE, 0x130, { KEY_RESERVED }},
++
++      /* Entering S2Idle suspend */
++      { KE_IGNORE, 0x140, { KEY_RESERVED }},
++
+       /* Mic mute */
+       { KE_KEY, 0x150, { KEY_MICMUTE } },
index 29d2c327df6ea2e5d3a397b53ca47f1c755333d8..886e80bfa9d748e3537cfd598f83bc35c34eece5 100644 (file)
@@ -132,3 +132,4 @@ serial-protect-uart_port_dtr_rts-in-uart_shutdown-to.patch
 net-phy-dp83822-fix-reset-pin-definitions.patch
 block-fix-sanity-checks-in-blk_rq_map_user_bvec.patch
 asoc-qcom-fix-null-dereference-in-asoc_qcom_lpass_cpu_platform_probe.patch
+platform-x86-dell-wmi-ignore-suspend-notifications.patch