Re: (subset) [PATCH v3 0/3] power: supply: bq257xx: Fix probe time race against driver teardown and battery parsing

From: Sebastian Reichel

Date: Sun Oct 04 2026 - 13:50:06 EST



On Thu, 10 Sep 2026 18:32:57 +0400, Alexey Charkov wrote:
> If a bus holding the battery-equipped power supply goes down right after
> it registered, it leads to massive fireworks as the driver starts to tear
> down its resources while callers from other contexts are already eager to
> process events using this driver's callbacks (and their private data).
>
> This was observed on a bq257xx device, which also uses the legacy parsing
> of battery information from the probe routine, where it happens after the
> power supply registration, adding yet another failure mode to callbacks
> firing early (i.e. before the device is fully initialized).
>
> [...]

Applied, thanks!

[2/3] power: supply: bq257xx: Use psy directly instead of driver data
commit: 1a64071bb30d97b75a1029943b6a3481098b254b
[3/3] power: supply: bq257xx: Convert parameters setup to the new .init callback
commit: 455e49c6700c8111d492923952a1fe3b98da0195

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