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 D4CF213B293; Tue, 27 Feb 2024 13:38:13 +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=1709041093; cv=none; b=XqoqYpbmmBjLywoadVWDffD0DtuuC/W9jBWLxN1OXAMtqoiDvtWyCgFhwKz0Mn59JriMxfnfsN+LhCr+bWTXnafmxrwKadjj+7H/Fpen/XKIrT/TB4ZaOOjhIGa+dX9P9jLNWon7/JldHJogsjrIrzkRXWb27tWckXkwr8PUqcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041093; c=relaxed/simple; bh=XFWYIpBM86Sj0xK3ZgD8f+lYUJwf+IMF6oTap1LEi4c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BV8h8O+LejTafpm0u3i1noy6myQQTicwNQxvujsS9BjtrOTjWvgARkXc1ifGIqkqHGKoI9TthNnU3ICzeFF+p/pERIwfoX61GrouaAJMfnIkjvfLgCHRd+yTSi3f5LPERTpDLGqaXD4UTBoSgHTdEq9eIvLigWxZoCia3L5LpqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ED4jnTG6; 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="ED4jnTG6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F65BC433C7; Tue, 27 Feb 2024 13:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709041093; bh=XFWYIpBM86Sj0xK3ZgD8f+lYUJwf+IMF6oTap1LEi4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ED4jnTG6UiAgpfxXc/iXJGzUAC+9Kswa9IwZKeajbNX8Wpsyjab2xLMVIpbS0zwFp e/M0vf5HiySlEmnzZm1/G6KuqysVCsCQwvuLjrQilrMd+6azZnYPGzvur6ZbTvBmBe tSRWUgcy4PKz+ax26vpPf1fMn+n2wnys0frt/cD4= 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.7 178/334] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler Date: Tue, 27 Feb 2024 14:20:36 +0100 Message-ID: <20240227131636.318820529@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131630.636392135@linuxfoundation.org> References: <20240227131630.636392135@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-Transfer-Encoding: 8bit 6.7-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); } /*