From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45AFC449B2A; Thu, 30 Jul 2026 16:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785427469; cv=none; b=b4MHri2Nnwkqksupy1VnvmynuTvhTJwtP0JfPJjP/U++/79tk06McijTtkniUebUSKULinvlwtTbaRK75jTRSJ0HLqvLyM609+QfHlYruhX9Clwcl7rQCA+HbO1WENkTAWcdTSRHZT5JkJzg0ri9DGOEK8fHtifwM2wnazQKVG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785427469; c=relaxed/simple; bh=LXFx4QJvKpEOityYm85HBhqlFI91ku2seqcSGPHrA3Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a1/40r7j2ixxsoqeY7q/gt7Cj/bqfqfrpC7evVRjC9fpUu49S3NyP/CcF72pcYPrcqJnY48wOOeT2sRTCNffFlsSU3OdZNeZMpXgLbxcF3qJoL5UmblBQVlE2imBdc0w8GQVqs9cR5dt6Hkz5OGVJZYlB165upUcGaqeSAvLVJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D91yQtcl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="D91yQtcl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A811F000E9; Thu, 30 Jul 2026 16:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785427468; bh=waowzF+MFTWmhQOE4nmFPHojLjYQ4ncmaj2FZ9QWaBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=D91yQtclGunj9ldOiYBKFDlrLJaHlwNpYSEC1n4Wl/4DQEO8/eZ5yj4aAcyoDo4P4 ZgMBUY6jOiX5rJJhxK8lSD9+Y0T8vGIPgY2TO4shXpFIy81bpHGqsyA/wlLxZmEWQD LAPUulV1RMcb7+ofBATJA5o7WbLPAOXygxDNDVE4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Richard Fitzgerald , Mark Brown , Sasha Levin Subject: [PATCH 6.6 136/484] ASoC: cs35l56: Use complete_all() to signal init_completion Date: Thu, 30 Jul 2026 16:10:33 +0200 Message-ID: <20260730141426.412372273@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260730141423.392222816@linuxfoundation.org> References: <20260730141423.392222816@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 e0bffb63a2eda0af82ed7e6357ac67c2db990c21 ] In cs35l56_init() use complete_all() to signal init_completion instead of complete(). cs35l56_init() was signaling init_completion using the complete() function. This only releases ONE waiter. If cs35l56_component_probe() was called multiple times the first time would consume that one signal, then future calls would timeout waiting for the completion. This could happen if: - The component is probed, removed, then probed again without the cs35l56 module being removed. - A call to component_probe() returns an error and ASoC calls it again later. It should use complete_all() so that after it has been signaled it will allow any code that waits on it to continue immediately. The one case where the driver must wait for initialization to run again is when waiting for a reboot after firmware download, and here the code correctly calls reinit_completion() first. Fixes: e496112529006 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56") Signed-off-by: Richard Fitzgerald Link: https://patch.msgid.link/20260716132045.1469156-3-rf@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs35l56.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c index dda40e97cf5e66..987bd7a3cf1d48 100644 --- a/sound/soc/codecs/cs35l56.c +++ b/sound/soc/codecs/cs35l56.c @@ -1423,7 +1423,7 @@ int cs35l56_init(struct cs35l56_private *cs35l56) return dev_err_probe(cs35l56->base.dev, ret, "Failed to write ASP1_CONTROL3\n"); cs35l56->base.init_done = true; - complete(&cs35l56->init_completion); + complete_all(&cs35l56->init_completion); return 0; } -- 2.53.0