From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Gopi Chandra Sekhar Reddy Kanala <gopi.kanala@oss.qualcomm.com>,
Srinivas Kandagatla <srini@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] soundwire: qcom: force runtime suspend across system sleep
Date: Mon, 30 Nov 2026 09:34:33 +0100 [thread overview]
Message-ID: <d657a8e6-6929-429b-a112-4c7330dbdae6@oss.qualcomm.com> (raw)
In-Reply-To: <20261130-qcom-swr-system-sleep-v2-2-4f65a868813d@oss.qualcomm.com>
On 11/30/26 8:10 AM, Gopi Chandra Sekhar Reddy Kanala wrote:
> The controller only implements runtime PM callbacks and relies on
> runtime suspend to stop the bus clock, gate hclk and arm the wake IRQ.
> That is not enough across system suspend: from the prepare phase until
> the complete phase the PM core holds a runtime PM usage count on every
> device, so a controller that is runtime active at that point stays
> active until the system resumes. This happens when suspend is entered
> within the 3 second autosuspend delay after bus activity, or when a
> peripheral driver resumes its device from its own system suspend
> callback, as the SDCA class function driver does to quiesce its
> interrupts.
>
> The bus clock then keeps running and hclk stays enabled for the whole
> suspend. On Qualcomm platforms the LPASS clock votes behind it are held
> as well, which keeps CX and DDR from collapsing in s2idle.
>
> Add system sleep callbacks that force the controller into runtime
> suspend and undo it on resume. Only do this when it is safe to run the
> runtime suspend path with the peripherals still attached:
>
> - The bus supports clock stop. Without it, runtime resume resets the
> bus and only re-initializes the peripherals it saw detach, which
> peripherals that were never runtime suspended have not done.
>
> - No stream is set up on the bus. A set up stream stays prepared and
> enabled across system sleep, and nothing programs its ports again
> on resume. Forcing the suspend during playback left the speakers
> silent after resume on Glymur CRD.
>
> A controller that is already runtime suspended is left alone, so runtime
> PM is not disabled for it any earlier than before.
>
> Signed-off-by: Gopi Chandra Sekhar Reddy Kanala <gopi.kanala@oss.qualcomm.com>
> ---
Sashiko has seemingly valid feedback
Konrad
prev parent reply other threads:[~2026-11-30 8:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 7:10 [PATCH v2 0/2] " 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 8:34 ` Konrad Dybcio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d657a8e6-6929-429b-a112-4c7330dbdae6@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=gopi.kanala@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=pierre-louis.bossart@linux.dev \
--cc=srini@kernel.org \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®