All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] ASoC: codecs: Fix runtime PM handling on probe failure and unbind
@ 2026-12-01 19:06 ` Arina Kharlamova via B4 Relay
  0 siblings, 0 replies; 21+ messages in thread
From: Arina Kharlamova @ 2026-12-01 19:06 UTC (permalink / raw)
  To: David Rhodes, Richard Fitzgerald, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Charles Keepax, Zhang Yi,
	Oder Chiou, ChiYuan Huang, Srinivas Kandagatla
  Cc: linux-sound, patches, linux-arm-msm, Arina Kharlamova

Six codec drivers leave runtime PM enabled, or keep a runtime PM
reference, when probe fails or when the driver is unbound. In five of
them a later probe then warns about an unbalanced pm_runtime_enable().

I found these with spec2patch. I model-checked the probe and remove
paths of each driver with CBMC against formal specifications of the
kernel APIs they call. 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.

---
Arina Kharlamova (6):
      ASoC: cs35l33: Disable runtime PM on component registration failure
      ASoC: cs35l34: Disable runtime PM on component registration failure
      ASoC: cs47l24: Disable runtime PM on probe failure
      ASoC: es9356: disable runtime PM in remove unconditionally
      ASoC: codecs: rtq9128: Drop runtime PM reference on probe errors
      ASoC: codecs: wsa881x: Disable runtime PM on unbind

 sound/soc/codecs/cs35l33.c | 1 +
 sound/soc/codecs/cs35l34.c | 1 +
 sound/soc/codecs/cs47l24.c | 4 +++-
 sound/soc/codecs/es9356.c  | 3 +--
 sound/soc/codecs/rtq9128.c | 7 ++++---
 sound/soc/codecs/wsa881x.c | 5 ++++-
 6 files changed, 14 insertions(+), 7 deletions(-)
---
base-commit: 20ee6031645dbed8ddf8f4833edf415f3760607f
change-id: 20261201-s2p-asoc-rpm-773b7fd87b87

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


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

end of thread, other threads:[~2026-12-02 17:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:06 [PATCH 0/6] ASoC: codecs: Fix runtime PM handling on probe failure and unbind Arina Kharlamova
2026-12-01 19:06 ` Arina Kharlamova via B4 Relay
2026-12-01 19:07 ` [PATCH 1/6] ASoC: cs35l33: Disable runtime PM on component registration failure Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-02  9:03   ` Konrad Dybcio
2026-12-02 17:28     ` Charles Keepax
2026-12-01 19:07 ` [PATCH 2/6] ASoC: cs35l34: " Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-01 19:07 ` [PATCH 3/6] ASoC: cs47l24: Disable runtime PM on probe failure Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-01 19:07 ` [PATCH 4/6] ASoC: es9356: disable runtime PM in remove unconditionally Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-01 19:22   ` sashiko-bot
2026-12-01 19:07 ` [PATCH 5/6] ASoC: codecs: rtq9128: Drop runtime PM reference on probe errors Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-02  1:31   ` ChiYuan Huang
2026-12-02  9:04   ` Konrad Dybcio
2026-12-01 19:07 ` [PATCH 6/6] ASoC: codecs: wsa881x: Disable runtime PM on unbind Arina Kharlamova
2026-12-01 19:07   ` Arina Kharlamova via B4 Relay
2026-12-02  9:05   ` Konrad Dybcio
2026-12-02  9:18   ` Srinivas Kandagatla

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.