Skip to content

platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)

Rong Zhang lkml platform-driver-x86 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. 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 filesSizeRepliesApplied
1/4platform/x86: ideapad-laptop: Use str_on_off() helperdrivers/platform/x86/lenovo/ideapad-laptop.c+8 -70 replies
2/4platform/x86: ideapad-laptop: Protect GBMD/SBMC calls with mutexdrivers/platform/x86/lenovo/ideapad-laptop.c+56 -350 replies
3/4platform/x86: ideapad-laptop: Support multiple power_supply_ext definitionsdrivers/platform/x86/lenovo/ideapad-laptop.c+23 -120 replies
4/4platform/x86: ideapad-laptop: Add charge_types:Fast (Rapid Charge)drivers/platform/x86/lenovo/ideapad-laptop.c+89 -161 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchIke PanhcMark Pearson
1/4
2/4A-b
3/4
4/4A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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