From: Krzysztof Kozlowski <krzk@kernel.org>
To: arina.kharlamova@mbzuai.ac.ae, Kevin Lu <kevin-lu@ti.com>,
Baojun Xu <baojun.xu@ti.com>, Sen Wang <sen@ti.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Peter Rosin <peda@lysator.liu.se>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Charles Keepax <ckeepax@opensource.cirrus.com>,
Shenghao Ding <shenghao-ding@ti.com>
Cc: linux-sound@vger.kernel.org, patches@opensource.cirrus.com
Subject: Re: [PATCH 2/2] ASoC: wm8994: Put the MCLK clocks when the codec is unbound
Date: Wed, 2 Dec 2026 14:11:02 +0100 [thread overview]
Message-ID: <3b2eee6b-ee12-4648-8451-54809e93ca07@kernel.org> (raw)
In-Reply-To: <20261201-s2p-lpr-asoc-v1-2-bd21e3a7a9ae@mbzuai.ac.ae>
On 01/12/2026 20:25, Arina Kharlamova via B4 Relay wrote:
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> wm8994_probe() gets MCLK1 and MCLK2 with devm_clk_bulk_get_optional()
> on the parent MFD device, but the clk_bulk_data array is in the codec
> private data. When the codec is unbound the array is freed while the
> devres entry of the parent still points to it, and clk_bulk_put() then
> uses the freed array when the parent goes away. Each new codec probe
> also adds another entry to the parent.
>
> Get the clocks with clk_bulk_get_optional() and put them from a devm
> action of the codec device.
>
> Fixes: 419e2f508336 ("ASoC: wm8994: Add support for setting MCLK clock rate")
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
> ---
> sound/soc/codecs/wm8994.c | 15 +++++++++++++--
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
prev parent reply other threads:[~2026-12-02 13:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:25 [PATCH 0/2] ASoC: fix devm use in pcm512x and wm8994 Arina Kharlamova
2026-12-01 19:25 ` Arina Kharlamova via B4 Relay
2026-12-01 19:25 ` [PATCH 1/2] ASoC: pcm512x: Keep the no-PLL constraint in the private data Arina Kharlamova
2026-12-01 19:25 ` Arina Kharlamova via B4 Relay
2026-12-01 19:25 ` [PATCH 2/2] ASoC: wm8994: Put the MCLK clocks when the codec is unbound Arina Kharlamova
2026-12-01 19:25 ` Arina Kharlamova via B4 Relay
2026-12-02 11:24 ` Krzysztof Kozlowski
2026-12-02 11:58 ` Charles Keepax
2026-12-02 13:10 ` Krzysztof Kozlowski
2026-12-02 13:11 ` Krzysztof Kozlowski [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=3b2eee6b-ee12-4648-8451-54809e93ca07@kernel.org \
--to=krzk@kernel.org \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=kevin-lu@ti.com \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=peda@lysator.liu.se \
--cc=perex@perex.cz \
--cc=s.nawrocki@samsung.com \
--cc=sen@ti.com \
--cc=shenghao-ding@ti.com \
--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.