Linux Sound subsystem development
 help / color / mirror / Atom feed
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 12:24:29 +0100	[thread overview]
Message-ID: <60ac068f-94d1-43fe-89ba-8c6868e66d7d@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:
>  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.

Best regards,
Krzysztof

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

Thread overview: 4+ 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 [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=60ac068f-94d1-43fe-89ba-8c6868e66d7d@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox