Re: [PATCH] power: supply: qcom_smbx: read the charging status without the power supply

From: Sebastian Reichel

Date: Sun Nov 08 2026 - 20:39:50 EST



On Thu, 08 Oct 2026 17:56:18 -0300, Fabricio Akio wrote:
> smb_get_iio_chan() reads the charging status through
> power_supply_get_property(chip->chg_psy), but chip->chg_psy is assigned
> only when devm_power_supply_register() returns, and the power supply
> core already calls get_property() from inside the registration, for its
> uevents. If another driver has taken a reference to the supply by then,
> as a fuel gauge naming the charger in power-supplies does, the core lets
> the call through, and reading CURRENT_NOW or VOLTAGE_NOW dereferences
> the NULL chg_psy.
>
> [...]

Applied, thanks!

[1/1] power: supply: qcom_smbx: read the charging status without the power supply
commit: a291a224a0f42bafd7a3e013751f897662c3affc

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