Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: 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>,
	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 11:58:04 +0000	[thread overview]
Message-ID: <axAHzIYdefdhQ+kY@opensource.cirrus.com> (raw)
In-Reply-To: <60ac068f-94d1-43fe-89ba-8c6868e66d7d@kernel.org>

On Wed, Dec 02, 2026 at 12:24:29PM +0100, Krzysztof Kozlowski wrote:
> On 01/12/2026 20:25, Arina Kharlamova via B4 Relay wrote:
> >  static int wm8994_probe(struct platform_device *pdev)
> >  {
> >  	struct wm8994_priv *wm8994;
> > @@ -4720,13 +4727,17 @@ static int wm8994_probe(struct platform_device *pdev)
> >  	wm8994->mclk[WM8994_MCLK1].id = "MCLK1";
> >  	wm8994->mclk[WM8994_MCLK2].id = "MCLK2";
> >  
> > -	ret = devm_clk_bulk_get_optional(pdev->dev.parent, ARRAY_SIZE(wm8994->mclk),
> > -					 wm8994->mclk);
> > +	ret = clk_bulk_get_optional(pdev->dev.parent, ARRAY_SIZE(wm8994->mclk),
> > +				    wm8994->mclk);
> 
> 
> I don't get why the clocks are get on the parent device, looks like some
> copy-paste code, so I think this should be fixed instead by
> devm_clk_bulk_get_optional() on this device, not on the parent.

I believe this is because its an MFD and uses a node for
the whole chip. Maybe could do something with copying the fwnode
to the child first the getting against yourself but not really
thought through if that would work.

Thanks,
Charles

      reply	other threads:[~2026-12-02 11:58 UTC|newest]

Thread overview: 5+ 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 via B4 Relay
2026-12-01 19:25 ` [PATCH 1/2] ASoC: pcm512x: Keep the no-PLL constraint in the private data 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 via B4 Relay
2026-12-02 11:24   ` Krzysztof Kozlowski
2026-12-02 11:58     ` 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=axAHzIYdefdhQ+kY@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox