Re: [PATCH v2 07/11] power: supply: max17042: time to empty is meaningless when charging

From: Peter Griffin

Date: Fri Feb 27 2026 - 11:48:04 EST


On Fri, 27 Feb 2026 at 07:15, André Draszik <andre.draszik@xxxxxxxxxx> wrote:
>
> When charging, the fuel gauge reports U16_MAX as time to empty.
> Ignoring this special case (as this driver currently does), causes the
> remaining time to be reported as ~102hours, which is incorrect.
>
> Update the code to not return anything in this case.
>
> Signed-off-by: André Draszik <andre.draszik@xxxxxxxxxx>
> ---

Reviewed-by: Peter Griffin <peter.griffin@xxxxxxxxxx>