All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] platform/x86: ideapad-laptop: synchronize VPC commands
@ 2024-07-09  9:33 Gergo Koteles
  2024-07-09  9:33 ` [PATCH 1/4] platform/x86: ideapad-laptop: use cleanup.h Gergo Koteles
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Gergo Koteles @ 2024-07-09  9:33 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, Ike Panhc
  Cc: platform-driver-x86, linux-kernel, Gergo Koteles

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-18  0:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09  9:33 [PATCH 0/4] platform/x86: ideapad-laptop: synchronize VPC commands Gergo Koteles
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.