[PATCH v2 0/2] soundwire: qcom: force runtime suspend across system sleep

From: Gopi Chandra Sekhar Reddy Kanala

Date: Mon Nov 30 2026 - 02:14:03 EST


The qcom SoundWire controller only has runtime PM callbacks. When
system suspend starts while the controller is runtime active, it stays
active for the whole suspend, so the bus clock and hclk keep running.
On Glymur CRD this keeps CX and DDR from collapsing in s2idle.

Patch 1 moves the PM ops to the current macros. Patch 2 forces the
controller into runtime suspend at system suspend, but only when the
bus supports clock stop and no stream is set up. The no clock stop
path is not changed.

Tested on Glymur CRD (WSA884x speakers on two controllers) with
next-20261123:
- s2idle entered within the autosuspend delay after playback: both
controllers stop the bus clock and gate hclk, and playback works
after resume.
- s2idle entered during playback: the controllers are left running,
and playback works after resume.
- s2idle entered with the controllers runtime suspended: no change.

---
Changes in v2:
- Add a patch moving to the current PM macros (Sashiko)
- Only force runtime suspend when the bus supports clock stop and no
stream is set up, as the no clock stop resume path and set up
streams are not re-initialized after a forced suspend (Sashiko)
- Leave a controller that is already runtime suspended alone, instead
of disabling runtime PM for it early (Sashiko)
- Link to v1: https://lore.kernel.org/r/20261112-qcom-swr-system-sleep-v1-1-a61a83f6475d@xxxxxxxxxxxxxxxx

---
Gopi Chandra Sekhar Reddy Kanala (2):
soundwire: qcom: use the current PM macros
soundwire: qcom: force runtime suspend across system sleep

drivers/soundwire/qcom.c | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 4 deletions(-)
---
base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
change-id: 20261112-qcom-swr-system-sleep-e42144d69ecb

Best regards,
--
Gopi Chandra Sekhar Reddy Kanala <gopi.kanala@xxxxxxxxxxxxxxxx>