From: Gergo Koteles <soyer@irl.hu>
To: "Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Ike Panhc" <ike.pan@canonical.com>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Gergo Koteles <soyer@irl.hu>
Subject: [PATCH 0/4] platform/x86: ideapad-laptop: synchronize VPC commands
Date: Tue, 9 Jul 2024 11:33:04 +0200 [thread overview]
Message-ID: <cover.1720515666.git.soyer@irl.hu> (raw)
Hi,
Sometimes the Yoga mode control switch did not work properly on my
laptop, and sometimes even caused a platform profile switch. It turned
out that it was caused by a race situation, the lenovo-ymc wmi notify
handler was running at the same time as the ideapad-laptop acpi notify
handler, and the partial results of the VPC calls in the two were mixed
up.
This series introduces a mutex and reorganizes the code a bit to
eliminate this.
Best regards,
Gergo Koteles
Gergo Koteles (4):
platform/x86: ideapad-laptop: use cleanup.h
platform/x86: ideapad-laptop: add a mutex to synchronize VPC commands
platform/x86: ideapad-laptop: move ymc_trigger_ec from lenovo-ymc
platform/x86: ideapad-laptop: move ACPI helpers from header to source
file
drivers/platform/x86/Kconfig | 1 +
drivers/platform/x86/ideapad-laptop.c | 284 +++++++++++++++++++++-----
drivers/platform/x86/ideapad-laptop.h | 140 +------------
drivers/platform/x86/lenovo-ymc.c | 34 +--
4 files changed, 235 insertions(+), 224 deletions(-)
--
2.45.2
next reply other threads:[~2024-07-09 9:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-09 9:33 Gergo Koteles [this message]
2024-07-09 9:33 ` [PATCH 1/4] platform/x86: ideapad-laptop: use cleanup.h Gergo Koteles
2024-07-15 11:45 ` Ilpo Järvinen
2024-07-09 9:33 ` [PATCH 2/4] platform/x86: ideapad-laptop: add a mutex to synchronize VPC commands Gergo Koteles
2024-07-09 9:33 ` [PATCH 3/4] platform/x86: ideapad-laptop: move ymc_trigger_ec from lenovo-ymc Gergo Koteles
2024-07-11 8:18 ` Ilpo Järvinen
2024-07-17 23:57 ` Gergo Koteles
2024-07-09 9:33 ` [PATCH 4/4] platform/x86: ideapad-laptop: move ACPI helpers from header to source file Gergo Koteles
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=cover.1720515666.git.soyer@irl.hu \
--to=soyer@irl.hu \
--cc=hdegoede@redhat.com \
--cc=ike.pan@canonical.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®