Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ASoC: wm8994: fix the mic detect IRQ handling
@ 2026-12-01 19:25 Arina Kharlamova via B4 Relay
  2026-12-01 19:25 ` [PATCH v3 1/2] ASoC: wm8994: free only the mic detect IRQ that was requested Arina Kharlamova via B4 Relay
  2026-12-01 19:25 ` [PATCH v3 2/2] ASoC: wm8994: free the Mic 2 short IRQ on component remove Arina Kharlamova via B4 Relay
  0 siblings, 2 replies; 5+ messages in thread
From: Arina Kharlamova via B4 Relay @ 2026-12-01 19:25 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai
  Cc: Charles Keepax, patches, linux-sound, Arina Kharlamova

Patch 1 frees only the mic detect interrupt that probe really requested,
and falls back to the internal MIC1_DET interrupt when the platform one
cannot be requested. Patch 2 frees the Mic 2 short interrupt on
component remove, which has been left behind since 9b7c525dfaa9.

I found the first issue 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 noticed the second one while
reworking the first. With the help of an AI coding assistant (Claude);
I reviewed the analysis and the fixes. Compile-tested only, not tested
on hardware.

---
Changes in v3:
- Rebase on broonie/sound for-next; v2 did not apply after
  905d79dffa3e ("ASoC: wm8994: drain delayed works on remove and
  probe error").
- Add patch 2, which frees the Mic 2 short IRQ on component remove.
- Link to v2: https://patch.msgid.link/20261201-s2p-v07-v2-1-80d13362a61b@mbzuai.ac.ae

Changes in v2:
- Fall back to the internal MIC1_DET interrupt when the platform one
  cannot be requested, and free the internal one in remove() and on
  the probe error path only when it was requested (Mark).
- Drop the Reviewed-by from Charles, the patch changed.
- Link to v1: https://patch.msgid.link/20261129-s2p-v07-v1-1-ed39c1bd86de@mbzuai.ac.ae

---
Arina Kharlamova (2):
      ASoC: wm8994: free only the mic detect IRQ that was requested
      ASoC: wm8994: free the Mic 2 short IRQ on component remove

 sound/soc/codecs/wm8994.c | 43 +++++++++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 12 deletions(-)
---
base-commit: 20ee6031645dbed8ddf8f4833edf415f3760607f
change-id: 20261129-s2p-v07-785155fb235d

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



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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:25 [PATCH v3 0/2] ASoC: wm8994: fix the mic detect IRQ handling Arina Kharlamova via B4 Relay
2026-12-01 19:25 ` [PATCH v3 1/2] ASoC: wm8994: free only the mic detect IRQ that was requested Arina Kharlamova via B4 Relay
2026-12-03 11:23   ` Charles Keepax
2026-12-01 19:25 ` [PATCH v3 2/2] ASoC: wm8994: free the Mic 2 short IRQ on component remove Arina Kharlamova via B4 Relay
2026-12-03 11:28   ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox