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 C32DB2222CA; Thu, 13 Feb 2025 14:38:25 +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=1739457505; cv=none; b=E7s3OZmlvWHorrAgvIFANJPXL4J6NSq9knFIA8fg/jdyiaO9sCEsKj56Ugyhd3ksnB8VFGhs3g/oyXxvw7GAkYthXRgoQNYBz6IqHr2SnKE04sR9Dc93kfgQQn/5PyVV0/HvDZv2k2zWwQtHjJyAc/JbgNpXb6yWa53Jz7OnM7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739457505; c=relaxed/simple; bh=a1CATRk27q9k+AUvl+8r5lVQhxxuI9YHR0lLpG18NkA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=paAIQVxXFxDNqLmOCyotwYallzj4G9Kc2jvPQdIj08j4lk3aeYvoQZtmKL4fiHQD7i+dqFmtK0dlxFrSrJ19j2pQXEhfHkvzjhBy/SX55O/P+tKC7LnaV0IHh2itzaJsD136MoNtY78QalDEonwGljRatfM9hMAVpwrI7qI3Z08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p0RrKz22; 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="p0RrKz22" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45AC9C4CED1; Thu, 13 Feb 2025 14:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739457505; bh=a1CATRk27q9k+AUvl+8r5lVQhxxuI9YHR0lLpG18NkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p0RrKz22EYRcSdw0391ACNXZyOs+ANIJ7rGi+exPz/N+dhwcTtGFVZ/rDlD/1fgyV Q7QLEDXOuAi4h0AvJ5wsMymnfGtrUGVanDPL+zlEJaFlvLxaG6Bnso0Z09EbITFvPl 8djOXj4sVKfrR4+EwFIr2YIQEMyMPzEf9VC7pN40= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Farhan Anwar , Rayan Margham , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Armin Wolf , Sasha Levin Subject: [PATCH 6.12 088/422] platform/x86: acer-wmi: Ignore AC events Date: Thu, 13 Feb 2025 15:23:57 +0100 Message-ID: <20250213142439.949435167@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142436.408121546@linuxfoundation.org> References: <20250213142436.408121546@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Armin Wolf [ Upstream commit f6bfa25c6665f8721421ea94fe506cc22f1d4b43 ] On the Acer Swift SFG14-41, the events 8 - 1 and 8 - 0 are printed on AC connect/disconnect. Ignore those events to avoid spamming the kernel log with error messages. Reported-by: Farhan Anwar Closes: https://lore.kernel.org/platform-driver-x86/2ffb529d-e7c8-4026-a3b8-120c8e7afec8@gmail.com Tested-by: Rayan Margham Reviewed-by: Ilpo Järvinen Signed-off-by: Armin Wolf Link: https://lore.kernel.org/r/20250119201723.11102-2-W_Armin@gmx.de Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- drivers/platform/x86/acer-wmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 6534f0cdeb2bb..c5679e4a58a76 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -95,6 +95,7 @@ enum acer_wmi_event_ids { WMID_HOTKEY_EVENT = 0x1, WMID_ACCEL_OR_KBD_DOCK_EVENT = 0x5, WMID_GAMING_TURBO_KEY_EVENT = 0x7, + WMID_AC_EVENT = 0x8, }; enum acer_wmi_predator_v4_sys_info_command { @@ -2326,6 +2327,9 @@ static void acer_wmi_notify(union acpi_object *obj, void *context) if (return_value.key_num == 0x5 && has_cap(ACER_CAP_PLATFORM_PROFILE)) acer_thermal_profile_change(); break; + case WMID_AC_EVENT: + /* We ignore AC events here */ + break; default: pr_warn("Unknown function number - %d - %d\n", return_value.function, return_value.key_num); -- 2.39.5