Re: [PATCH v4 1/3] ASoC: codecs: lpass-wsa-macro: Switch to PM clock framework for runtime PM

From: Mark Brown

Date: Tue May 19 2026 - 10:33:49 EST


On Mon, May 18, 2026 at 01:47:36PM +0530, Ajay Kumar Nandam wrote:
> Convert the LPASS WSA macro codec driver to use the PM clock framework
> for runtime power management.

> The driver now relies on pm_clk helpers and runtime PM instead of
> manually enabling and disabling macro, dcodec, mclk, npl, and fsgen
> clocks. Runtime suspend and resume handling is delegated to the PM
> core via pm_clk_suspend() and pm_clk_resume(), while existing runtime
> PM callbacks continue to manage regcache state.

> + ret = devm_pm_clk_create(dev);

The !PM_CLK stub for this just returns -EINVAL so if that's not enabled
then none of the clocks will be enabled, the driver needs a dependency
adding.

Attachment: signature.asc
Description: PGP signature