Re: [PATCH v2] power: supply: max17040: propagate register read errors
From: Sebastian Reichel
Date: Mon Jul 27 2026 - 09:20:03 EST
On Mon, 27 Jul 2026 14:48:25 +0800, Jianing Li wrote:
> max17040_get_vcell() and max17040_get_soc() ignore errors returned by
> regmap_read(). When an I2C transfer fails, the uninitialized register
> value is converted and reported to userspace as a valid voltage or state
> of charge. The polling worker can also replace the cached state of charge
> with the bogus value and emit a spurious change event.
>
> Propagate read errors through the power supply get_property callback and
> keep the last valid cached state of charge when polling fails.
>
> [...]
Applied, thanks!
[1/1] power: supply: max17040: propagate register read errors
commit: 659cc3d8d5ef246263873fce72c8cadeeed073cc
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>