From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380021; b=0uFuFBKL4xyCa954ReVY1r1wTdg3jVlCcWtS3IilN68RckhWxUGoptS84EbQ+KuSDL3z RlzXlpTwYUXvrSOwRO/dR/RAp+MOs+Koam9mgOuVuUBIIhxn5XcFBUtYCE5ubGIwObceJ zkTK0pTJSmUoRSGxzmteHUX4ve+xC9OV9Nyvm1mFR0jL5TQSTh/kGLqbDoBM+lNQrmphl lWb0TZVlAzcpRWoaloMMxcDIDKsT4TcenTuqz5+iq3o3BFmCKEjGGRdkIUKtyfWzOGsBw pk8apyMHbFbNEcQf3AKC54gYP+nmRTJ74jwqUKn8b56NiLZ9AEdtVU+VHeU472Li7Qg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380021; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=nqG6dBb5wU42U7O26HfNdCvMaMU2eVfCJLC/QF3c3jw=; b=wCqD0dcp/PR0cWSEuS5UWxh2f4hgLOq2puDmJCD7F7R2LxFy+jZru2PSueNTPjXMclpD wk/J6tuUMneKPMJ4PJsuH7smPnIFyrn9nZ77mrwoms3NqM5n1xTX5bBoOdMZdL8ipIeXC eCZuSUje4/o+/YaJDf8SZE+MtcZRktAMO/dNMswzQ3QzO4XsejCw7UzI0piMK4iMHxuZr Y6+OF0UDQOeLm/6RBrtNVU+5fYRCq9H4V5Owbt4L9yvqFZsBbrBhh2PCBEccwpjZ2I5w8 +sQCoaIgpy4x4CY/d3fo+jYvx2GRATNqhlckxptEfd1sKojYZ+jryg2Uxu+QIPsR6fA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=iwk6Imdi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02E3D606A322; Fri, 4 Dec 2026 10:27:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=iwk6Imdi Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DFD11F000CE; Fri, 4 Dec 2026 10:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380020; bh=nqG6dBb5wU42U7O26HfNdCvMaMU2eVfCJLC/QF3c3jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iwk6ImdiOTvKO64/KTUBkvEFUuICbtuduZwkpQqHe6IECoCn0Oib3Yc4zMdMUk0CW JvmgHCi2SQHszKw4xfEnUXHm46TMDxRb767bu3u6VMluV8Hc1r+ReqAJZhC7D/CQU8 VeXMKHE0FwGNnQgDzQv99yu0e/JHfxcO2WttdyH0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Oleg Keri , Dmitry Baryshkov , Vinod Koul , Sasha Levin Subject: [PATCH 7.3 062/742] soundwire: qcom: disable the interrupt before gating the clock Date: Fri, 4 Dec 2026 18:58:46 +0900 Message-ID: <20261204100636.728483433@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Oleg Keri [ Upstream commit 6c067677192f054bbfa815caf04f536bb8dcdee2 ] swrm_runtime_suspend() gates hclk straight after the ClockStopNow broadcast, while the interrupt thread that completed it is still clearing the status and CLK_STOP_FINISHED is about to fire. Both touch registers with the clock going away; on x1e80100 and glymur hclk is the SoundWire clock itself. The next clock-stop exit then fails at random (bus clash, parity errors, AUTO_ENUM_FAILED) and one side of the speakers stays detached until reboot. Disable the interrupt before gating the clock and enable it again once the clock is back. Fixes: 74e79da9fd46 ("soundwire: qcom: add runtime pm support") Signed-off-by: Oleg Keri Reviewed-by: Dmitry Baryshkov Link: https://patch.msgid.link/20261009082639.22662-1-okerixx@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/soundwire/qcom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 55678a30cd4a1..c5e48e8a84429 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1730,6 +1730,7 @@ static int __maybe_unused swrm_runtime_resume(struct device *dev) } clk_prepare_enable(ctrl->hclk); + enable_irq(ctrl->irq); if (ctrl->clock_stop_not_supported) { reinit_completion(&ctrl->enumeration); @@ -1813,6 +1814,7 @@ static int __maybe_unused swrm_runtime_suspend(struct device *dev) } } + disable_irq(ctrl->irq); clk_disable_unprepare(ctrl->hclk); usleep_range(300, 305); -- 2.53.0