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=1796388850; b=eDB89FwFBptQBA3qKstdaTQNAurmkwfZGGxw0vCmFyjzcsbwWJ5SFdDZ/Soa4OrtZhJi 0Dx+vPMvnS/JJJr3NZD47hLSeUjMOLlQpbEftvdwedC1llEKUGzpwPv6GJNsRgaKqO1Uj B9sIszW2p+gE081dLo+YzGEu8Gn6XdQKw4fAMwDLPs+0zhWTemx1OwWiTCXXEy1m3oava v35WDC5XVPaBoV+NRMINeyMPW4+BeGH0gzDpl6nPb4oiKldSguuJHC+1pJuVVRcBDvaiH QD7RTzYcih+vbj9iIeHFz2ztJ5Sbnj3/iGEjyKwqSy9siQQgP18fDdVQP4W5KBMdfSQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388850; 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=K12U4QFombZjKeWB1eAKmod0hoBOC7mJX5UcdjTlKHw=; b=5iMOn45GT0O766eqxYXZeWAigFjqKhyq27f1sDpOAiFUJtMkqKkuj9TYFcL0s9i4uG9V fiXWMMkEYjcjMH3k9UlXf9P61DXi5glii78G7VpARp6N78UG1QuoGwWQXLhs6fQk00GvM RZ42SGsoEmwrZIUEhk+cze6dbyh45aTBXyURGiWf5QhliYLl4ytdfbgDCbjZKAA4LsfX3 1BjJMoviNGiaLIMXKv2yBOaiv6RKLTgM6xO8sOMQxVSF+tsRsIC8mb7PO7V2AEVLut7Ik VraBsrwPyXe16WSy3TbifPfsbdyUDnXMJoggdBfhcTXM89uiVqCs8V5o3yPpK4CVRQA== 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=WiwywBwf; 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 173AA606A682; Fri, 4 Dec 2026 12:54:10 +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=WiwywBwf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77B031F0093B; Fri, 4 Dec 2026 12:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388849; bh=K12U4QFombZjKeWB1eAKmod0hoBOC7mJX5UcdjTlKHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WiwywBwfDu0bQY6PgFIZO75+ecUhgHqVVXFA8BtUZgkzLVRc5Hwq90nN5usyzc0QY 61zpkAQ4OC+7/XaC8pZ4kfIboQzVmGOMdgoYjxBmfCX0/4K5ieTXYyB2s0Rm469Ppq TvBi9EMkoAlV/EYHdgnTxRMoXz2VgozEHLMnqbHk= 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.1 0775/1059] soundwire: qcom: disable the interrupt before gating the clock Date: Fri, 4 Dec 2026 19:05:06 +0900 Message-ID: <20261204100704.085648949@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@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.1-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 5d2ccccd61722..f2c42730aa5f4 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1512,6 +1512,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); @@ -1576,6 +1577,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