mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
power: supply: qcom_battmgr: Add lithium-polymer entry
[ Upstream commit 202ac22b8e
]
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 <abel.vesa@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250523-psy-qcom-battmgr-add-lipo-entry-v1-1-938c20a43a25@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
571617f171
commit
90e0bd0f8f
|
@ -980,6 +980,8 @@ static unsigned int qcom_battmgr_sc8280xp_parse_technology(const char *chemistry
|
||||||
{
|
{
|
||||||
if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN))
|
if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN))
|
||||||
return POWER_SUPPLY_TECHNOLOGY_LION;
|
return POWER_SUPPLY_TECHNOLOGY_LION;
|
||||||
|
if (!strncmp(chemistry, "LIP", BATTMGR_CHEMISTRY_LEN))
|
||||||
|
return POWER_SUPPLY_TECHNOLOGY_LIPO;
|
||||||
|
|
||||||
pr_err("Unknown battery technology '%s'\n", chemistry);
|
pr_err("Unknown battery technology '%s'\n", chemistry);
|
||||||
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
|
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user