Re: [PATCH 2/5] power: supply: qcom_smbx: test battery health status bits
From: Konrad Dybcio
Date: Mon Aug 17 2026 - 11:42:17 EST
On 8/12/26 1:29 AM, Robin Snyders via B4 Relay wrote:
> From: Robin Snyders <robin@xxxxxxxxxxx>
>
> BATTERY_CHARGER_STATUS_2 contains independent status and fault bits.
> Switching on the complete register only recognizes a fault when it is the
> sole asserted bit, and can report a healthy battery when another status
> bit is set at the same time.
>
> Test the relevant fault bits in priority order, matching the Qualcomm
> downstream driver handling.
>
> Fixes: 8648aeb5d7b7 ("power: supply: add Qualcomm PMI8998 SMB2 Charger driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Robin Snyders <robin@xxxxxxxxxxx>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad