Re: [PATCH 3/5] power: supply: qcom_smbx: fix float voltage selector

From: Konrad Dybcio

Date: Mon Aug 17 2026 - 10:50:02 EST


On 8/12/26 1:30 AM, Robin Snyders via B4 Relay wrote:
> From: Robin Snyders <robin@xxxxxxxxxxx>
>
> FLOAT_VOLTAGE_CFG encodes 3,487,500 uV as selector zero and advances in
> 7,500 uV steps. The current calculation adds one to that selector, so it
> programs the requested float voltage one step too high.
>
> Remove the extra offset and name the hardware encoding constants.
>
> 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