]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)
authorRong Zhang <i@rong.moe>
Wed, 5 Nov 2025 18:28:27 +0000 (02:28 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 10 Nov 2025 09:55:43 +0000 (11:55 +0200)
commit90430ea98f5585270bc185cee548154d239af8d7
treef5049dd58e922f63d3deaec4d17e1aa1eae3ae89
parent5c54ece0476638f7c5fc655c655e721286a26bf1
platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)

The GBMD/SBMC interface on recent devices supports Rapid Charge mode
(charge_types: Fast) in addition to Conservation Mode (charge_types:
Long_Life).

Query the GBMD interface on probe to determine if a device supports
Rapid Charge. If so, expose these two modes while carefully maintaining
their mutually exclusive state, which aligns with the behavior of
manufacturer utilities on Windows.

Signed-off-by: Rong Zhang <i@rong.moe>
Acked-by: Ike Panhc <ikepanhc@gmail.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-By: Jelle van der Waa <jelle@vdwaa.nl>
Link: https://patch.msgid.link/20251105182832.104946-5-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