Re: [PATCH v2] power: supply: core: give each supply's epc_sem its own lockdep class

From: Sebastian Reichel

Date: Mon Nov 30 2026 - 20:12:58 EST



On Sun, 29 Nov 2026 23:19:43 -0600, Ryan Brue wrote:
> Since commit 9f7f7a859451 ("power_supply: serialize property access with
> unregister"), power_supply_get_property() takes the target supply's
> epc_sem for read. Every supply's epc_sem is initialised at the same site,
> so they all share one lockdep class.
>
> A driver that reads another supply while holding a lock that its
> get_property() callback also takes is then reported as a circular
> dependency, even though the two semaphores belong to different supplies.
> sc27xx_fgu_get_property() does this with data->lock and the charger, and
> a fuel gauge driver in preparation did the same with its charger:
>
> [...]

Applied, thanks!

[1/1] power: supply: core: give each supply's epc_sem its own lockdep class
commit: 7eea980e2fcc3c45235804c4824b88a1c0ddc3bd

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