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>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
patches@opensource.cirrus.com, linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: wm8993: Fix unbalanced regulator disables on remove
Date: Wed, 2 Dec 2026 10:44:12 +0000 [thread overview]
Message-ID: <aw/2fO2TU2vLQcbR@opensource.cirrus.com> (raw)
In-Reply-To: <20261201-s2p-d101-v1-1-84a6b2587e74@mbzuai.ac.ae>
On Tue, Dec 01, 2026 at 02:57:10AM +0400, Arina Kharlamova via B4 Relay wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> The supplies are enabled during probe only to identify and reset the
> device, and disabled again before the component is registered. After
> that they are owned by wm8993_set_bias_level(), which enables them on
> the OFF to STANDBY transition and disables them again in OFF.
>
> wm8993_i2c_remove() still calls regulator_bulk_disable() on top of
> this. With no card bound the supplies are already off, so the regulator
> core warns about unbalanced disables on every unbind. With a card bound
> and the codec in STANDBY it cuts the supplies while the component is
> still registered, and the later OFF transition, run when devres
> unregisters the component, then warns. The error path after a failed
> component registration disables them a second time in the same way.
>
> Drop the disable from remove() and from that error path.
>
> Fixes: bfea3abb804f ("ASoC: Move WM8993 resource acquisition and device reset to bus probe")
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
prev parent reply other threads:[~2026-12-02 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:57 [PATCH] ASoC: wm8993: Fix unbalanced regulator disables on remove Arina Kharlamova via B4 Relay
2026-12-02 10:44 ` Charles Keepax [this message]
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=aw/2fO2TU2vLQcbR@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=broonie@kernel.org \
--cc=broonie@opensource.wolfsonmicro.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox