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 6D22178B61; Tue, 27 Feb 2024 14:17:14 +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=1709043434; cv=none; b=hB/bQGuC85pifzT26MHZiS+Ruvg69gZF1iZ2xU0RFi0vDZitzPQxuep93qwvg3QKFQwnHzfs1UcuoA2Pd0XQZ6qs8t2ylgvBWS6af5rfYr5suzOk47W1EeUNPDY9exi5x5QWdMBr4bXUAXatuQSNKGwwQ2cKkHz+seDco6IfwiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043434; c=relaxed/simple; bh=GFA+adsAkFEBpHy06e4QtkXU29KFuRpAYHGiy7vj1Kk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ESelx21sKLjCK3w8FUC82sC74fSmGV0dBlJf42/GLBKS+1FEvcVRGQCB98bi+tA8fagdB/64iU+E1L5DtkfJmrHcMEbCiQXpoceW3ZcirdKboXFxBLrCsWED7ctguHgp7jybPAVlW0Uofha2gCm3Zm3JOYOd/zROukmYrsWoInA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KkukOLLM; 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="KkukOLLM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F16D2C433F1; Tue, 27 Feb 2024 14:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043434; bh=GFA+adsAkFEBpHy06e4QtkXU29KFuRpAYHGiy7vj1Kk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkukOLLMdMLS/QDAnlZihbAGZIH4Iw9WMcjzXH0VgeVZ1HdFpUQcSrfsUkWWeAe2q UH7Kwv5E4ZHzMqFWWrpIR78Ijrwd6LAWbPuiEO4HaBLKxkXTtmustRW0EB8dsvuhKe XLMfiMgsYAssY83kPmG9St8KwRWMRFlQOoi7HcfY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Kobel , regressions@lists.linux.dev, Arnold Gozum , Hans de Goede Subject: [PATCH 6.1 099/195] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler Date: Tue, 27 Feb 2024 14:26:00 +0100 Message-ID: <20240227131613.742771568@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131610.391465389@linuxfoundation.org> References: <20240227131610.391465389@linuxfoundation.org> User-Agent: quilt/0.67 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-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit 84c16d01ff219bc0a5dca5219db6b8b86a6854fb upstream. Commit 14c200b7ca46 ("platform/x86: intel-vbtn: Fix missing tablet-mode-switch events") causes 2 issues on the ThinkPad X1 Tablet Gen2: 1. The ThinkPad will wake up immediately from suspend 2. When put in tablet mode SW_TABLET_MODE reverts to 0 after about 1 second Both these issues are caused by the "VBDL" ACPI method call added at the end of the notify_handler. And it never became entirely clear if this call is even necessary to fix the issue of missing tablet-mode-switch events on the Dell Inspiron 7352. Drop the "VBDL" ACPI method call again to fix the 2 issues this is causing on the ThinkPad X1 Tablet Gen2. Fixes: 14c200b7ca46 ("platform/x86: intel-vbtn: Fix missing tablet-mode-switch events") Reported-by: Alexander Kobel Closes: https://lore.kernel.org/platform-driver-x86/295984ce-bd4b-49bd-adc5-ffe7c898d7f0@a-kobel.de/ Cc: regressions@lists.linux.dev Cc: Arnold Gozum Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede Tested-by: Alexander Kobel Link: https://lore.kernel.org/r/20240216203300.245826-1-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel/vbtn.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/platform/x86/intel/vbtn.c +++ b/drivers/platform/x86/intel/vbtn.c @@ -200,9 +200,6 @@ static void notify_handler(acpi_handle h autorelease = val && (!ke_rel || ke_rel->type == KE_IGNORE); sparse_keymap_report_event(input_dev, event, val, autorelease); - - /* Some devices need this to report further events */ - acpi_evaluate_object(handle, "VBDL", NULL, NULL); } /*