[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251105182832.104946-1-i@rong.moe>
Date: Thu, 6 Nov 2025 02:28:23 +0800
From: Rong Zhang <i@...g.moe>
To: Ike Panhc <ikepanhc@...il.com>,
Mark Pearson <mpearson-lenovo@...ebb.ca>,
"Derek J. Clark" <derekjohn.clark@...il.com>,
Hans de Goede <hansg@...nel.org>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: Rong Zhang <i@...g.moe>,
Jelle van der Waa <jelle@...aa.nl>,
platform-driver-x86@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/4] 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.
Tested on ThinkBook 14 G7+ ASP.
Changes in v2:
- Only expose Rapid Charge on devices that support it (thanks Jelle van
der Waa)
- Support multiple power_supply_ext definitions to implement the change
above
- Use str_on_off() helper (thanks Ilpo Järvinen)
- Link to v1: https://lore.kernel.org/r/20251020192443.33088-1-i@rong.moe/
Rong Zhang (4):
platform/x86: ideapad-laptop: Use str_on_off() helper
platform/x86: ideapad-laptop: Protect GBMD/SBMC calls with mutex
platform/x86: ideapad-laptop: Support multiple power_supply_ext
definitions
platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)
drivers/platform/x86/lenovo/ideapad-laptop.c | 218 ++++++++++++++-----
1 file changed, 162 insertions(+), 56 deletions(-)
base-commit: 1c353dc8d962de652bc7ad2ba2e63f553331391c
--
2.51.0
Powered by blists - more mailing lists