Re: (subset) [PATCH 0/3] power: supply: qcom_battmgr: fix SM8350/SM8550 units, acks, and negative temp
From: Sebastian Reichel
Date: Sat Dec 05 2026 - 13:09:58 EST
On Thu, 19 Nov 2026 00:16:49 +0100, Alexandru Andrieș wrote:
> Fix three issues in qcom_battmgr encountered while bringing up PMIC GLINK
> battery reporting on a Xiaomi MIX 4 (xiaomi-odin, SM8350):
>
> 1. Set battmgr->unit to QCOM_BATTMGR_UNIT_mAh on SM8350 and SM8550 so
> charge_full and charge_full_design stop returning -ENODATA.
> 2. Complete &battmgr->ack on invalid payload length errors in both
> callbacks so callers receive -ENODATA immediately instead of stalling
> for 1s with -ETIMEDOUT and aborting power_supply_uevent().
> 3. Change status.temperature and qcom_battmgr_sc8280xp_convert_temp() to
> int and cast SM8350 BATT_TEMP values to s32 before dividing by 10 so
> sub-zero temperatures do not wrap into large positive values.
>
> [...]
Applied, thanks!
[2/3] power: supply: qcom_battmgr: complete ack on callback payload errors
commit: cfbb37e60332cc8e47f13f0c63de4c0243874540
[3/3] power: supply: qcom_battmgr: fix negative temperature values
commit: 1deea85dbbee9604bb17297178832399c43530b8
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>