Re: [PATCH] power: supply: bq27xxx: Don't report missing battery properties as invalid
From: Sebastian Reichel
Date: Sun Nov 15 2026 - 19:09:17 EST
On Sat, 07 Nov 2026 19:09:45 -0800, Hex Lindqvist wrote:
> When the device tree leaves out energy-full-design-microwatt-hours or
> charge-full-design-microamp-hours, power_supply_get_battery_info() sets
> the field to -EINVAL. bq27xxx_battery_settings() then compares it with
> an unsigned limit, so -EINVAL becomes a large positive number and the
> missing property is also reported as invalid:
>
> bq27xxx-battery 10-0055: missing battery:energy-full-design-microwatt-hours
> bq27xxx-battery 10-0055: invalid battery:energy-full-design-microwatt-hours -22
>
> [...]
Applied, thanks!
[1/1] power: supply: bq27xxx: Don't report missing battery properties as invalid
commit: 376589960dd90ed09679a2c835c288a0f5456940
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>