All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
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 14:10:38 +0100	[thread overview]
Message-ID: <1de22d69-ec28-453c-90f8-24f5f0f3d63e@kernel.org> (raw)
In-Reply-To: <axAHzIYdefdhQ+kY@opensource.cirrus.com>

On 02/12/2026 12:58, Charles Keepax wrote:
> 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.

Indeed

Best regards,
Krzysztof

  reply	other threads:[~2026-12-02 13:10 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 [this message]
2026-12-02 13:11   ` Krzysztof Kozlowski

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=1de22d69-ec28-453c-90f8-24f5f0f3d63e@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.