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=1796383259; b=QXzuggB3tYTa9qCxAgPCZGQVIRLk4qSpspef/G8Bkf/YuieckF/9rCigh6FZeJ+Zs5Jv agI09OUZEi5msbeGTRIjb48sWL9+UDVi10VfCKR6oQ40XyxgjGl4RRw3umeMMqPoeDwrQ pkGnY3DA6lq+pl7P12XobGO+X27bpZgV68OwxrnQt8vOEXxun85RFZZp7mziycfLdS5hK HEbuoCXJ/4oI63IZju+mRzPoBowEr5N5dUqMaCTQdPdgLjM0lTh02XmqFOedFbZ7Hq/8G is6MZrbb/MGl8lV4a4I6zJRt8Z6TssZ+v0M1EZgS99zN8nns/ILsGuyAJvimDvK1jYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383259; 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=iJWTjw6PbC0UorJMXu6vyOwwa72vUVmFtgeAVrojIWc=; b=3U279LZVCxBv89bulTSQ69XmiHQW5pk+L+kWQy6YXcCEa7RH32jVLP27JV9BJ8tyozxD Cki5wwfJvI8gA0cTuIBtDx0m8CIZeLWPIaqdfDA7/UDzeneLBRNdaCdSUjlyuSwhKh/AM GxHtGG4aABg36SqiI7oYZWKX9Xm7z9VL/gjHRoqL89USj2TaryKGmQtTVaH3xKJGAPWmW LTw++vl3GM5DQ/yViGP+ULOjCuTRVNBb5GFJIbIjKaGIbFD/XI+wDRlTcdzTFqyMQQuSy I1V5J17fNjiXrCTHfzkVts3SW3gTJzoHQJsKfXrRVbu8loJ34EEP76DsxxqQ+WZXtFQ== 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="Q6GY/6hJ"; 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 E0744606A32F; Fri, 4 Dec 2026 11:20:58 +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=Q6GY/6hJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CCC91F00931; Fri, 4 Dec 2026 11:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383258; bh=iJWTjw6PbC0UorJMXu6vyOwwa72vUVmFtgeAVrojIWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Q6GY/6hJ5Np/jvEW2DNd0FC/DCps1zNxPxuKy4viTtAAD9o46XT8/JoFwt4/Ilnka USN5FOhKqo0iatxPz74WUXQgfFwxXk1Nxlr3ieYSHmPaDPxsOCGozP2pIEjBBQhCrK hL8rc3mC/XfLU/L50V9xm/0cVtFtg1iHSUvWoKQM= 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 6.12 150/555] soundwire: qcom: disable the interrupt before gating the clock Date: Fri, 4 Dec 2026 19:03:13 +0900 Message-ID: <20261204100613.985859537@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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 6.12-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 db7c8fb04f117..4704df8e6b70f 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1667,6 +1667,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); @@ -1750,6 +1751,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