Re: [PATCH] power: supply: bq2515x: Propagate charge-enable read errors

From: Sebastian Reichel

Date: Wed Sep 09 2026 - 17:25:20 EST



On Mon, 24 Aug 2026 16:42:17 +0800, Linmao Li wrote:
> bq2515x_get_charge_disable() returns bool even though reading the
> charger-disable state can fail. A negative error is therefore converted to
> true, so POWER_SUPPLY_PROP_STATUS reports NOT_CHARGING with success instead
> of propagating the failure. The GPIO read is not checked for errors either.
>
> Return an int from the helper, check both reads, and only convert a valid
> charger-disable state to the charging-status boolean.
>
> [...]

Applied, thanks!

[1/1] power: supply: bq2515x: Propagate charge-enable read errors
commit: 35bb788549d45f82f82c88e569d42826e3005c65

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>