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=1796381669; b=E4MLzOReBmkjBPjmgdkED6hX1rFGfzzWkCvN2PHdEhCaaTPekimDt2fpW3FGiE5IIn3t QsMJOowPrqxx/9uATdI/UIqO9KDrInGgtg0Z5P4uwaq0nF0OfwtNF9xsPB/KDbujyd/Qh zr/A7wxArviM+JquwEbUQHgsGURQpYmdQg439zo9liTRwEjHy1hZIw5VY1xdzbxQt3ldy 7K9k+7O73xAMAoCONYEVcRcA1dNZwUonvw+lEeV7FJcSn5LzLdgLi25muHJbUH79/8P1d HXCMO1nHCpC+Ei+oYX9wrJji9O9P4a3GiLMZqp3vzAkd5w83AyAxhxhN2gyjdUedkYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381669; 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=EB/x/+nd18f7ORarKbG7ALyS7VykCecmO8OMvL6t+GE=; b=iXlwutdTKSNaYGU7rtGyOKORyw5ORho/ekmlk1mVVaYHU3/JkK21DSXu64FKAAoiLkPx ojvMtGObXUsxe6iehLykezTxXcuVLau+eEoFJcgnT4vdzQvR6JzR847peTrpWsDdTSbMF Pi+d8T3TT2A1rI1PzZHS3luU9OsMUU3Sz6qGy4luRdq176OAAJQVQtIuwU9fkHfcij0rs u55ojMibtdNZL17/3oN6IvsfWxX3pHpefObrwjVIXNHD5lqAhopxCu+diTrgohEarBjEQ 5AQlViFDA2nuVa2xpyPHXnstzk1zrDdMl0zIOh9qB8mifyEvKGpqRQPGHjS32GiZWcg== 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=DOBkIjit; 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 68DAA606A684; Fri, 4 Dec 2026 10:54:29 +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=DOBkIjit Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8DAE1F000C2; Fri, 4 Dec 2026 10:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381669; bh=EB/x/+nd18f7ORarKbG7ALyS7VykCecmO8OMvL6t+GE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DOBkIjitQg8b7LMf0EasAZrSGYTC+5I1pO/iDuumUV5XdDGf1IayJisQBKrqtu+xs g+RgMXjD3bFa3eChEmdEjHCbXd3jESlmzomdqDbaP0F5PkEAX3FnX0zAXYue6GINid ZUvhvv3WTFdpFdV9iy3Mn9xpEpATyIeNuKd8ZIp0= 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.18 123/703] soundwire: qcom: disable the interrupt before gating the clock Date: Fri, 4 Dec 2026 19:00:22 +0900 Message-ID: <20261204100631.071268181@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@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.18-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 a4f108fdffddb..8a5e8bc282137 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1664,6 +1664,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); @@ -1747,6 +1748,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