From: Hans de Goede <hdegoede@redhat.com>
To: Benjamin Berg <benjamin@sipsolutions.net>,
Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
Cc: ibm-acpi-devel@lists.sourceforge.net,
platform-driver-x86@vger.kernel.org,
Benjamin Berg <bberg@redhat.com>
Subject: Re: [PATCH] platform/x86: thinkpad_acpi: Send tablet mode switch at wakeup time
Date: Tue, 24 Nov 2020 13:10:07 +0100 [thread overview]
Message-ID: <c8deaf95-6b49-d8d7-6f09-1845ad70f40d@redhat.com> (raw)
In-Reply-To: <20201123132157.866303-1-benjamin@sipsolutions.net>
Hi,
On 11/23/20 2:21 PM, Benjamin Berg wrote:
> From: Benjamin Berg <bberg@redhat.com>
>
> The lid state may change while the machine is suspended. As such, we may
> need to re-check the state at wake-up time (at least when waking up from
> hibernation).
> Add the appropriate call to the resume handler in order to sync the
> SW_TABLET_MODE switch state with the hardware state.
>
> Fixes: dda3ec0aa631 ("platform/x86: thinkpad_acpi: Implement tablet mode using GMMS method")
> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=210269
> Signed-off-by: Benjamin Berg <bberg@redhat.com>
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> ---
> drivers/platform/x86/thinkpad_acpi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index e3810675090a..9104e0ee37cd 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -4228,6 +4228,7 @@ static void hotkey_resume(void)
> pr_err("error while attempting to reset the event firmware interface\n");
>
> tpacpi_send_radiosw_update();
> + tpacpi_input_send_tabletsw();
> hotkey_tablet_mode_notify_change();
> hotkey_wakeup_reason_notify_change();
> hotkey_wakeup_hotunplug_complete_notify_change();
>
prev parent reply other threads:[~2020-11-24 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 13:21 [PATCH] platform/x86: thinkpad_acpi: Send tablet mode switch at wakeup time Benjamin Berg
2020-11-23 22:43 ` ibm-acpi
2020-11-24 12:10 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8deaf95-6b49-d8d7-6f09-1845ad70f40d@redhat.com \
--to=hdegoede@redhat.com \
--cc=bberg@redhat.com \
--cc=benjamin@sipsolutions.net \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).