]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: ideapad-laptop: Protect GBMD/SBMC calls with mutex
authorRong Zhang <i@rong.moe>
Wed, 5 Nov 2025 18:28:25 +0000 (02:28 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 10 Nov 2025 09:55:39 +0000 (11:55 +0200)
commit85901a0d8591ecd756078e57be077f12a0ee78be
tree7b7bb6fe3a132e2806926e0c2f056bc76e93ad19
parent06c129cac01be45e458d37534d1a6ba753cf6f13
platform/x86: ideapad-laptop: Protect GBMD/SBMC calls with mutex

The upcoming changes for Rapid Charge support require two consecutive
SBMC calls to switch charge_types. Hence, a mutex is required.

No functional change intended.

Signed-off-by: Rong Zhang <i@rong.moe>
Acked-by: Ike Panhc <ikepanhc@gmail.com>
Link: https://patch.msgid.link/20251105182832.104946-3-i@rong.moe
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo/ideapad-laptop.c