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=1796384485; b=eMnfuSTyvfF9q3UL357c5GXEluukXmpUvCVkkZWsp65mYiGBVHLOpUMgwj99/GJ7SEbA uXCbLFA+tGcUAodRdE5b4qx/GL+sKMw6sTXXEcC7T2zI9F+cOm51bJQHJhBjwICcNa3MN j+MnAmNK7pCK6Z2gbvuOdRgpBxuBtG8xNJ1pkjA2G/Oo0DckOq6QEhN8wIFFNfwlqcx8S DWRC3fpKEZ7HwhQcUwcPtE1Xpogi7rjVVEfeuU2SWk7kriWYaZAmCy6oC2iFsMl2+eBm7 x5RsQcIw2CjVhB0m9sBYTFAUXoT0TotoTgLRwQJOkizPz7TGzYV6hmKksNvmotI8mMg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384485; 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=NOrt01CadtigBWDBTzqfTo2ew93tyCz+WtmUiHyIEhg=; b=Aaa6401/Scr6DG6wRzx7BKiAIIVSzBZSJjAboG8odS6XLA35M0DsRsRXWNQBBf4VIxDC Mp9Mizu/bWVQ+XUFaJzd9WSHn4Zo68Jh3KylKoYW5mOxAV9n4NLqDYvjzeawj4uGBpBAK O4wQMG9cChj+8FuNIpf0b9om1aIxMSIpsEtsNzBdfmlyaJuXbW8aO7fp0k4v/PT3QLNtC pFb7LmqtShdmsHpTkX1xl47/RDGZbPOzg3MOLNWCRG5Ml/1DBDMB4xjIBvdFPL3rNALKy Spen097JWzUzFHZWIlvW9hxGjRpJVjTWyEBBPNqnzWX3+kjsir2A3BFomrx7u1Lpc8w== 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="ara/6M+D"; 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 6B3D0606A322; Fri, 4 Dec 2026 11:41:25 +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=ara/6M+D Received: by smtp.kernel.org (Postfix) with ESMTPSA id D74C81F00897; Fri, 4 Dec 2026 11:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384485; bh=NOrt01CadtigBWDBTzqfTo2ew93tyCz+WtmUiHyIEhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ara/6M+D7W29PXxJ3Wi6or4vdeisUD9q7lNSpl3Iysb9ScxyBn2jtggnn/Wp98zTu Bbep8zNpMFoZtRmI2CZWBtvfdwvyarIFqgl+ZNB4vj6fpqg8vYI4yHcRaNWf3TPk6N zwNRVY82aVypkv+qWVAVlqFNc5MqWhvg/jQ5mruw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Richard Fitzgerald , Takashi Iwai , Sasha Levin Subject: [PATCH 6.6 0170/1167] ALSA: hda: cs35l56: Stop cs_dsp before calling cs_dsp_power_down() Date: Fri, 4 Dec 2026 18:53:17 +0900 Message-ID: <20261204100706.506486501@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Fitzgerald [ Upstream commit 8c63987ac7fe605c337edbf9052cf97e2a415558 ] In cs35l56_hda_unbind() call cs_dsp_stop() before cs_dsp_power_down() if cs_dsp is in a running state. cs35l56_hda_runtime_resume() calls cs_dsp_run() if cs_dsp_power_up() has previously run successfully. If cs35l56_hda_unbind() is then called while in this runtime-resumed state cs_dsp will be running. The code wasn't checking for this and was calling cs_dsp_power_down() while still in a running state, which is illegal. This is currently fairly harmless for the cs35l56 driver. But it doesn't comply with the API, so potentially could break with any future changes that expect the correct API use. Fixes: fb78d73dde2d4 ("ALSA: hda/cs35l56: Call cs_dsp_power_down() before calling cs_dsp_remove()") Signed-off-by: Richard Fitzgerald Link: https://patch.msgid.link/20261104122337.1072468-1-rf@opensource.cirrus.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/cs35l56_hda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c index afb397c32361f..badb150050a3e 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -704,6 +704,8 @@ static void cs35l56_hda_unbind(struct device *dev, struct device *master, void * cs_dsp_cleanup_debugfs(&cs35l56->cs_dsp); debugfs_remove_recursive(cs35l56->debugfs_root); #endif + if (cs35l56->cs_dsp.running) + cs_dsp_stop(&cs35l56->cs_dsp); if (cs35l56->base.fw_patched) cs_dsp_power_down(&cs35l56->cs_dsp); -- 2.53.0