mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Luke Macken <luke@phorex.org>,
	srini@kernel.org, vkoul@kernel.org,
	yung-chuan.liao@linux.intel.com
Cc: pierre-louis.bossart@linux.dev, okerixx@gmail.com,
	gopi.kanala@oss.qualcomm.com, linux-sound@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] soundwire: qcom: wait for the link to stop before gating the clock
Date: Tue, 1 Dec 2026 10:41:57 +0100	[thread overview]
Message-ID: <3bb9e3fa-7813-4bd4-8abb-19f66cb93584@oss.qualcomm.com> (raw)
In-Reply-To: <20261130195511.1713480-1-luke@phorex.org>

On 11/30/26 8:55 PM, Luke Macken wrote:
> swrm_runtime_suspend() gates hclk after sdw_bus_clk_stop() returns
> without checking that the frame generator has stopped. On the ThinkPad
> T14s Gen 7 (v3.1.0 controller) hclk comes from the LPASS WSA macro, and
> gating it turns off the macro's SoundWire clock. A trace shows that the
> frame generator can still be enabled when sdw_bus_clk_stop() returns.
> 
> On this laptop the speakers sometimes stay silent when playback starts
> after a runtime suspend. A failure may leave one or both of these in
> the log:

[...]

> +static void swrm_wait_for_frame_gen_disabled(struct qcom_swrm_ctrl *ctrl)
> +{
> +	int retry = SWRM_LINK_STATUS_RETRY_CNT;
> +	u32 comp_sts;
> +
> +	/*
> +	 * Downstream only checks the link status from v1.6 on, where HCLK
> +	 * and MCLK are decoupled.
> +	 */
> +	if (ctrl->version <= SWRM_VERSION_1_5_1)
> +		return;

note:

if (!(ctrl->version >= VERSION_1_6)

would be more robust if say v1.5.7 comes around

Konrad

      reply	other threads:[~2026-12-01  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 19:55 Luke Macken
2026-12-01  9:41 ` 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=3bb9e3fa-7813-4bd4-8abb-19f66cb93584@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=luke@phorex.org \
    --cc=okerixx@gmail.com \
    --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®