Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] soundwire: qcom: force runtime suspend across system sleep
@ 2026-11-30  7:10 Gopi Chandra Sekhar Reddy Kanala
  2026-11-30  7:10 ` [PATCH v2 1/2] soundwire: qcom: use the current PM macros Gopi Chandra Sekhar Reddy Kanala
  2026-11-30  7:10 ` [PATCH v2 2/2] soundwire: qcom: force runtime suspend across system sleep Gopi Chandra Sekhar Reddy Kanala
  0 siblings, 2 replies; 6+ messages in thread
From: Gopi Chandra Sekhar Reddy Kanala @ 2026-11-30  7:10 UTC (permalink / raw)
  To: Srinivas Kandagatla, Vinod Koul, Bard Liao, Pierre-Louis Bossart
  Cc: linux-sound, linux-arm-msm, linux-kernel,
	Gopi Chandra Sekhar Reddy Kanala

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@oss.qualcomm.com

---
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@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-30  8:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  7:10 [PATCH v2 0/2] soundwire: qcom: force runtime suspend across system sleep Gopi Chandra Sekhar Reddy Kanala
2026-11-30  7:10 ` [PATCH v2 1/2] soundwire: qcom: use the current PM macros Gopi Chandra Sekhar Reddy Kanala
2026-11-30  8:33   ` Konrad Dybcio
2026-11-30  7:10 ` [PATCH v2 2/2] soundwire: qcom: force runtime suspend across system sleep Gopi Chandra Sekhar Reddy Kanala
2026-11-30  7:33   ` sashiko-bot
2026-11-30  8:34   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox