[PATCH v2 0/3] ASoC: qcom: lpass: Switch VA/WSA macros to PM clock framework

From: Ajay Kumar Nandam

Date: Mon Apr 20 2026 - 08:30:55 EST


This series converts LPASS WSA and VA macro codec drivers to the PM
clock framework for runtime PM clock handling.

Clock enable/disable sequencing during runtime suspend/resume is moved
to pm_clk helpers, while regcache state handling remains in the driver
runtime PM callbacks. This aligns these codec drivers with common LPASS
runtime PM patterns and reduces idle clock voting.

Patch 3 switches WSA MCLK clock registration to devm-managed
clk_hw registration.

---
v1: lore.kernel.org/r/20260413121824.375473-1-ajay.nandam@xxxxxxxxxxxxxxxx

Changes since v1:
- Fixed runtime resume error handling in WSA/VA paths:
- keep regcache cache-only on pm_clk_resume() failure
- unwind clocks with pm_clk_suspend() if regcache_sync() fails
- Dropped the separate "Guard optional NPL clock rate programming"
patch as discussed on list

Ajay Kumar Nandam (3):
ASoC: codecs: lpass-wsa-macro: Switch to PM clock framework for
runtime PM
ASoC: codecs: lpass-va-macro: Switch to PM clock framework for runtime
PM
ASoC: codecs: lpass-wsa-macro: Use devm_clk_hw_register() for MCLK
output

sound/soc/codecs/lpass-va-macro.c | 123 ++++++++++++++---------------
sound/soc/codecs/lpass-wsa-macro.c | 115 +++++++++------------------
2 files changed, 97 insertions(+), 141 deletions(-)

--
2.34.1