All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: tas2552: Fix runtime PM and supply refcounting
@ 2026-12-01 19:24 ` Arina Kharlamova via B4 Relay
  0 siblings, 0 replies; 7+ messages in thread
From: Arina Kharlamova @ 2026-12-01 19:24 UTC (permalink / raw)
  To: Baojun Xu, Sen Wang, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Dinghao Liu, Shenghao Ding, Kevin Lu
  Cc: linux-sound, Arina Kharlamova

Two refcounting fixes for tas2552. Patch 1 removes an unmatched runtime
PM put from the I2C probe, which warns about a usage count underflow on
every boot, and disables runtime PM when the probe fails. Patch 2
disables the supplies when the component is removed.

I found this with spec2patch. I model-checked the probe and remove paths
of the driver with CBMC against formal specifications of the kernel APIs
it calls. The specifications are checked against the kernel source, and
some of them are proved in Rocq against a transcription of the kernel
code. I also checked lock usage separately. With the help of an AI
coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

I noticed the problem fixed in patch 2 while reviewing patch 1.

To: Shenghao Ding <shenghao-ding@ti.com>

To: Kevin Lu <kevin-lu@ti.com>

---
Arina Kharlamova (2):
      ASoC: tas2552: Fix runtime PM usage count underflow in probe
      ASoC: tas2552: Disable supplies on component remove

 sound/soc/codecs/tas2552.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
base-commit: 20ee6031645dbed8ddf8f4833edf415f3760607f
change-id: 20261201-tas2552-rpm-4d19db003214

Best regards,
--  
Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-01 19:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:24 [PATCH 0/2] ASoC: tas2552: Fix runtime PM and supply refcounting Arina Kharlamova
2026-12-01 19:24 ` Arina Kharlamova via B4 Relay
2026-12-01 19:24 ` [PATCH 1/2] ASoC: tas2552: Fix runtime PM usage count underflow in probe Arina Kharlamova
2026-12-01 19:24   ` Arina Kharlamova via B4 Relay
2026-12-01 19:24 ` [PATCH 2/2] ASoC: tas2552: Disable supplies on component remove Arina Kharlamova
2026-12-01 19:24   ` Arina Kharlamova via B4 Relay
2026-12-01 19:36   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.