[PATCH 0/3] ASoC: use scoped OF node handling in manual cleanup paths

From: Cássio Gabriel

Date: Mon Jun 08 2026 - 09:39:52 EST


Some ASoC drivers still manually release child OF nodes
when leaving child-node iteration loops early.

Convert these focused cases to scoped OF node cleanup
so early returns and normal loop exits keep the same node
lifetime handling without explicit of_node_put() calls.

- Patch 1 updates qcom_snd_parse_of() to use
for_each_available_child_of_node_scoped() for link nodes and
__free(device_node) for temporary cpu/platform/codec child nodes.
- Patch 2 updates fsl_qmc_audio to use
for_each_available_child_of_node_scoped() for DAI child-node parsing.
- Patch 3 updates cygnus-ssp to use
for_each_available_child_of_node_scoped() for SSP child-node parsing.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
---
Cássio Gabriel (3):
ASoC: qcom: common: use scoped OF node handling
ASoC: fsl: fsl_qmc_audio: use scoped child node loop
ASoC: bcm: cygnus: use scoped child node loop

sound/soc/bcm/cygnus-ssp.c | 10 ++++-----
sound/soc/fsl/fsl_qmc_audio.c | 7 ++-----
sound/soc/qcom/common.c | 47 ++++++++++++++-----------------------------
3 files changed, 21 insertions(+), 43 deletions(-)

---
base-commit: 112b3b39550d94f94eb7e44fd865716835d9aab2

Best regards,
--
Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>