Re: [PATCH v1 2/3] ASoC: codecs: lpass-va-macro: Switch to PM clock framework for runtime PM

From: Mark Brown

Date: Tue Apr 14 2026 - 08:12:38 EST


On Mon, Apr 13, 2026 at 05:48:23PM +0530, Ajay Kumar Nandam wrote:

> struct va_macro *va = dev_get_drvdata(dev);
> int ret;
>
> - ret = clk_prepare_enable(va->mclk);
> - if (ret) {
> - dev_err(va->dev, "unable to prepare mclk\n");
> + ret = pm_clk_resume(dev);
> + if (ret)
> return ret;
> - }
> -
>
> regcache_cache_only(va->regmap, false);
> - regcache_sync(va->regmap);
>
> - return 0;
> + return regcache_sync(va->regmap);

Same issue here (and the cache only mode needs to be reenabled), and
likely also in the third patch thouh I didn't check that yet.

Attachment: signature.asc
Description: PGP signature