Re: [PATCH] power: supply: max17042_battery: infer the status when no supplier is described

From: Sebastian Reichel

Date: Sun Nov 08 2026 - 20:31:09 EST



On Mon, 19 Oct 2026 10:33:02 -0400, Derek Ross wrote:
> When no power supply is described as supplying the battery,
> power_supply_am_i_supplied() returns -ENODEV and the driver reports
> POWER_SUPPLY_STATUS_UNKNOWN, even though the gauge measures the battery
> current itself.
>
> That is the case on the Pixel 7 Pro, where the charger is left running
> by the bootloader and no charger driver is bound yet. The battery read
> "Unknown" while taking in 1.2 A, so the desktop showed no charging
> indicator and upower treated the phone as discharging: at its critical
> percentage it put a charging phone to sleep.
>
> [...]

Applied, thanks!

[1/1] power: supply: max17042_battery: infer the status when no supplier is described
commit: c9797f02962f784d5920eacc4d6cad1369a8c20a

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