[PATCH] phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered

Vinod Koul vkoul at kernel.org
Fri Apr 12 04:35:30 PDT 2024


On Sat, 06 Apr 2024 16:08:21 +0200, Hans de Goede wrote:
> The power_supply frame-work is not really designed for there to be
> long living in kernel references to power_supply devices.
> 
> Specifically unregistering a power_supply while some other code has
> a reference to it triggers a WARN in power_supply_unregister():
> 
> 	WARN_ON(atomic_dec_return(&psy->use_cnt));
> 
> [...]

Applied, thanks!

[1/1] phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered
      commit: bf6e4ee5c43690e4c5a8a057bbcd4ff986bed052

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list