Skip to content

Commit 202ac22

Browse files
abelvesasre
authored andcommitted
power: supply: qcom_battmgr: Add lithium-polymer entry
On some Dell XPS 13 (9345) variants, the battery used is lithium-polymer based. Currently, this is reported as unknown technology due to the entry missing. [ 4083.135325] Unknown battery technology 'LIP' Add another check for lithium-polymer in the technology parsing callback and return that instead of unknown. Signed-off-by: Abel Vesa <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/20250523-psy-qcom-battmgr-add-lipo-entry-v1-1-938c20a43a25@linaro.org Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 3f87baa commit 202ac22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/power/supply/qcom_battmgr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,8 @@ static unsigned int qcom_battmgr_sc8280xp_parse_technology(const char *chemistry
984984
{
985985
if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN))
986986
return POWER_SUPPLY_TECHNOLOGY_LION;
987+
if (!strncmp(chemistry, "LIP", BATTMGR_CHEMISTRY_LEN))
988+
return POWER_SUPPLY_TECHNOLOGY_LIPO;
987989

988990
pr_err("Unknown battery technology '%s'\n", chemistry);
989991
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;

0 commit comments

Comments
 (0)