* [PATCH] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler
@ 2024-02-16 20:33 Hans de Goede
2024-02-19 12:56 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2024-02-16 20:33 UTC (permalink / raw)
To: Ilpo Järvinen, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, Alexander Kobel, regressions,
Arnold Gozum
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 <a-kobel@a-kobel.de>
Closes: https://lore.kernel.org/platform-driver-x86/295984ce-bd4b-49bd-adc5-ffe7c898d7f0@a-kobel.de/
Cc: regressions@lists.linux.dev
Cc: Arnold Gozum <arngozum@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/platform/x86/intel/vbtn.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/platform/x86/intel/vbtn.c b/drivers/platform/x86/intel/vbtn.c
index 210b0a81b7ec..084c355c86f5 100644
--- a/drivers/platform/x86/intel/vbtn.c
+++ b/drivers/platform/x86/intel/vbtn.c
@@ -200,9 +200,6 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
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);
}
/*
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler
2024-02-16 20:33 [PATCH] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler Hans de Goede
@ 2024-02-19 12:56 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2024-02-19 12:56 UTC (permalink / raw)
To: Ilpo Järvinen, Andy Shevchenko
Cc: platform-driver-x86, Alexander Kobel, regressions, Arnold Gozum
Hi,
On 2/16/24 21:33, Hans de Goede wrote:
> 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 <a-kobel@a-kobel.de>
> Closes: https://lore.kernel.org/platform-driver-x86/295984ce-bd4b-49bd-adc5-ffe7c898d7f0@a-kobel.de/
> Cc: regressions@lists.linux.dev
> Cc: Arnold Gozum <arngozum@gmail.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
I've added this to my review-hans (soon to be fixes) branch now.
Regards,
Hans
> ---
> drivers/platform/x86/intel/vbtn.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/platform/x86/intel/vbtn.c b/drivers/platform/x86/intel/vbtn.c
> index 210b0a81b7ec..084c355c86f5 100644
> --- a/drivers/platform/x86/intel/vbtn.c
> +++ b/drivers/platform/x86/intel/vbtn.c
> @@ -200,9 +200,6 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
> 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);
> }
>
> /*
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-19 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 20:33 [PATCH] platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler Hans de Goede
2024-02-19 12:56 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox