From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: arina.kharlamova@mbzuai.ac.ae
Cc: 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>,
Krzysztof Kozlowski <krzk@kernel.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Shenghao Ding <shenghao-ding@ti.com>,
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 17:45:28 +0000 [thread overview]
Message-ID: <axBZOL3zXF3iIQLc@opensource.cirrus.com> (raw)
In-Reply-To: <20261201-s2p-lpr-asoc-v1-2-bd21e3a7a9ae@mbzuai.ac.ae>
On Tue, Dec 01, 2026 at 11:25:50PM +0400, 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>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
prev parent reply other threads:[~2026-12-02 17:46 UTC|newest]
Thread overview: 11+ 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
2026-12-02 17:45 ` 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=axBZOL3zXF3iIQLc@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=kevin-lu@ti.com \
--cc=krzk@kernel.org \
--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.