From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: arina.kharlamova@mbzuai.ac.ae
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
patches@opensource.cirrus.com, linux-sound@vger.kernel.org
Subject: Re: [PATCH v3 1/2] ASoC: wm8994: free only the mic detect IRQ that was requested
Date: Thu, 3 Dec 2026 11:23:48 +0000 [thread overview]
Message-ID: <axFRRGRp6RCgPqZd@opensource.cirrus.com> (raw)
In-Reply-To: <20261201-s2p-v07-v3-1-c6f80695b6dc@mbzuai.ac.ae>
On Tue, Dec 01, 2026 at 11:25:22PM +0400, Arina Kharlamova via B4 Relay wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> wm8994_component_probe() requests either the platform mic detect
> interrupt or the internal MIC1_DET one. When the platform request
> fails, it only warns and keeps micdet_irq set, so the probe error path
> and remove() call free_irq() on an interrupt this driver never got.
> remove() on WM8994 also frees the internal MIC1_DET interrupt when the
> platform one is in use, and on WM8958 and WM1811 it never frees the
> internal one.
>
> When the platform request fails, clear micdet_irq and fall back to the
> internal interrupt. On the probe error path and in remove(), free the
> platform interrupt if micdet_irq is set and the internal one otherwise.
>
> Fixes: 9b7c525dfaa9 ("ASoC: Support WM8958 direct microphone detection IRQ")
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
next prev parent reply other threads:[~2026-12-03 11:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:25 [PATCH v3 0/2] ASoC: wm8994: fix the mic detect IRQ handling Arina Kharlamova
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
2026-12-01 19:25 ` Arina Kharlamova via B4 Relay
2026-12-03 11:23 ` Charles Keepax [this message]
2026-12-01 19:25 ` [PATCH v3 2/2] ASoC: wm8994: free the Mic 2 short IRQ on component remove Arina Kharlamova
2026-12-01 19:25 ` Arina Kharlamova via B4 Relay
2026-12-03 11:28 ` Charles Keepax
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axFRRGRp6RCgPqZd@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.