platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 2 repliesIn review
- v11 patch 1 replySuperseded
Changes in v2 from the cover letter
- 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/[email protected]/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | platform/x86: ideapad-laptop: Use str_on_off() helperdrivers/ | +8 | 0 replies | |
| 2/4 | platform/x86: ideapad-laptop: Protect GBMD/SBMC calls with mutexdrivers/ | +56 | 0 replies | |
| 3/4 | platform/x86: ideapad-laptop: Support multiple power_supply_ext definitionsdrivers/ | +23 | 0 replies | |
| 4/4 | platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)drivers/ | +89 | 1 reply |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Ike Panhc | Mark Pearson |
|---|---|---|
| 1/4 | ||
| 2/4 | A-b | |
| 3/4 | ||
| 4/4 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [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/[email protected]/
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
Signature · 1 line
2.51.0