mbox series

[0/4] platform/x86: ideapad-laptop: synchronize VPC commands

Message ID cover.1720515666.git.soyer@irl.hu (mailing list archive)
Headers show
Series platform/x86: ideapad-laptop: synchronize VPC commands | expand

Message

Gergo Koteles July 9, 2024, 9:33 a.m. UTC
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(-)