From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86C4E2AF07; Mon, 28 Oct 2024 06:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730098529; cv=none; b=eVFVghHDSYlXpcKPR/9p7TWP7uyvGg2W9saP692wlwRWherHiUgQi/gSKPxq+Yng+WSr3aax+gLv/8q4tZcu2eM0GpKbGAGDKdQ9RZokEp71W4y/WxnycW6FuPxuPL6NUZh63arqUJgkjQBaIKZqAaJPvHxskHPTbOqKQ5v/lAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730098529; c=relaxed/simple; bh=36THsWNXP3IP1SFgsQ1zE25jv8GNh/2ezRnDDGsC5Sc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nAtISXR50pE0iM6+E/6l69nGL73rDSnPF/V0PAUu599cG2/6KjnBMG/EBuwOLawKES37OCRVuMhkHdoyZ1T8mM3kopnRhVCr0G5yIOpXkKbMzuO3/PmtvVNIyEOjVJjQv7EK0C2SA0ZSzDiiW+9Pc85AMj1eveoFWA+CtYfbcbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2aYM2jOS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2aYM2jOS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25A61C4CEC3; Mon, 28 Oct 2024 06:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730098529; bh=36THsWNXP3IP1SFgsQ1zE25jv8GNh/2ezRnDDGsC5Sc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2aYM2jOSowS9WJuEmwrXUzI/Jrhv58JH1vYoTbYriTBIClpovamMi7UW6txmrqqK2 m6WS2j9YabHNCBNMajzfmM+wICvR3kYXkJzaEMWEry3851hbV2FgS0MaVL4/2G9AQB PrQIojjrVtwP99LZvES9u6aJw8caXOyAu156zfbw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, siddharth.manthan@gmail.com, Armin Wolf , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Hans de Goede Subject: [PATCH 6.11 259/261] platform/x86: dell-wmi: Ignore suspend notifications Date: Mon, 28 Oct 2024 07:26:41 +0100 Message-ID: <20241028062318.577806120@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241028062312.001273460@linuxfoundation.org> References: <20241028062312.001273460@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Armin Wolf 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 Acked-by: Pali Rohár Link: https://lore.kernel.org/r/20241014220529.397390-1-W_Armin@gmx.de Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- 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 } },