From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796200202; b=yFRuigfgtPXrIvki3oxVxAUjSnxvWPtZQxPlVzns/xCAB65bBquxFM9SopcBLHq1Xi5N st7MPDaAG4aVKqF4DaZuwsvKCTVt8r22KQfSa5+r8xILPvhIOloew35/F4/zyV2b7jdq3 EOxi3SKHS2a5Zf8eFUYZ1GgnTCpLp6P0YdHLv9PK7EH6zfgGPBfURL7dafK6hH4jCRfcR TAstJbSyzQrwqhrJg1Ef0xGd6S5tfAEYa0DKX62TPMjQpgpxDp6k4Fho8PGLx5Avx6kMz tXNOiEZ9Y4kJxUer0WSqRCp5Ja/tESFZ8NESOZx4AMjXePmAQA7Gl1v64fg101H6fTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200202; h=DMARC-Filter:Received:DKIM-Signature:DKIM-Signature:DKIM-Signature: DKIM-Signature:Received:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-Spamd-Result:X-Rspamd-Server:X-Rspamd-Action:X-Spam-Flag: X-Spam-Score:X-Spam-Level:X-Rspamd-Queue-Id; bh=whr0STckBfSiJwP8jm3nCPyhLMLSYm39FK1MxAqPZUY=; b=pdnIWEeoLjWROQJbXaDYhVH6nqor6MwzZEbEj0aWVkEcufaPFafJT59pHX6DJ/XF7aOT okNAWZbY5ci1sdUNm3kQ06OZPeyYVBVPnmxEZwrUf+DlicVI4Z9L07r6Zh/9zO/wthyPl kPffJDSNsHg7cQxklxMZ9UJXyotv8s0Q6kG8EKYZ9MKMpZxRoNBzlR/GO1DFIiLgb5q3V +XTWPwFXoF7awZCRdEVsXpaDFQDyVAX7AEclEIEG9W6CyttU98U+kqbJQUIGPVaHrwGb+ 15mMQ3UBB/RRDKXTuniokAYx0ZxB6TierkqCVnb+MZCAeuuqcuxyRWimCU+bpqFNyww== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=2BwKbpjk; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ktDVkFjG; dkim=pass header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=2BwKbpjk; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ktDVkFjG; arc=none smtp.remote-ip=195.135.223.130 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58F01606A329; Wed, 2 Dec 2026 08:30:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 58F01606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=2BwKbpjk; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ktDVkFjG; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=2BwKbpjk; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ktDVkFjG Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 16924222D1; Wed, 2 Dec 2026 08:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1796200200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=whr0STckBfSiJwP8jm3nCPyhLMLSYm39FK1MxAqPZUY=; b=2BwKbpjkAmqQPZKo+A2v7RdZzqRzh9pg6+RMPHYVJ9KXPaaG8eva7ho7/lS6A2M/mNAe94 Mtz2MtdUxrAt/cjAH0EcuZpU4Ow/qI6a7QRE2NumA0dzGwpjpT5ZCbPjdgz1fVJJYlRxCt X55zsmJpwe0kCrnHZdmEyURkKRSEcGg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1796200200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=whr0STckBfSiJwP8jm3nCPyhLMLSYm39FK1MxAqPZUY=; b=ktDVkFjGP9qJvnfqB2gADF4GtNN0gGo2hb0Ht4Gh0i0w2wf5YDjXFSJG7eGMAtvZmZ6QHs qYK0fKBTz9WIWpAQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=2BwKbpjk; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=ktDVkFjG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1796200200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=whr0STckBfSiJwP8jm3nCPyhLMLSYm39FK1MxAqPZUY=; b=2BwKbpjkAmqQPZKo+A2v7RdZzqRzh9pg6+RMPHYVJ9KXPaaG8eva7ho7/lS6A2M/mNAe94 Mtz2MtdUxrAt/cjAH0EcuZpU4Ow/qI6a7QRE2NumA0dzGwpjpT5ZCbPjdgz1fVJJYlRxCt X55zsmJpwe0kCrnHZdmEyURkKRSEcGg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1796200200; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=whr0STckBfSiJwP8jm3nCPyhLMLSYm39FK1MxAqPZUY=; b=ktDVkFjGP9qJvnfqB2gADF4GtNN0gGo2hb0Ht4Gh0i0w2wf5YDjXFSJG7eGMAtvZmZ6QHs qYK0fKBTz9WIWpAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id BF8EC13505; Wed, 2 Dec 2026 08:29:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id yHwUJQfXD2tpbgAAD6G6ig (envelope-from ); Wed, 02 Dec 2026 08:29:59 +0000 Date: Wed, 02 Dec 2026 09:29:59 +0100 Message-ID: <87y0a8xeyg.wl-tiwai@suse.de> From: Takashi Iwai To: Richard Fitzgerald Cc: tiwai@suse.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH] ALSA: hda: cs35l56: Volume/Posture controls don't need to wait for dsp_work In-Reply-To: <20261201111600.458478-1-rf@opensource.cirrus.com> References: <20261201111600.458478-1-rf@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/30.2 Mule/6.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spamd-Result: default: False [-12.51 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; DKIM_TRACE(0.00)[suse.de:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,suse.de:dkim] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spam-Flag: NO X-Spam-Score: -12.51 X-Spam-Level: X-Rspamd-Queue-Id: 16924222D1 On Tue, 01 Dec 2026 12:16:00 +0100, Richard Fitzgerald wrote: > > Delete the calls to cs35l56_hda_wait_dsp_ready() in the get/put handlers > for the Volume and Posture controls. This wait isn't necessary now. > > The original reason for the wait in the get/put handlers was that the > downloaded firmware can patch the registers to non-default values. To > avoid the regmap cache getting out-of-sync with the actual register > value, the ASoC driver fixed up the regmap content at the end of > firmware download. This meant that control get/put had to wait for > firmware download to complete. The HDA driver never had this fixup code > so never needed the wait. > > Commit df4167d658d4 ("ASoC: cs35l56: Patch soft registers to defaults") > already removed this fix-up code in the ASoC driver, and instead used > the regmap patch to set volume and posture registers to a default of zero. > When HDA driver firmware download was moved to a workqueue in > commit 634f3b4e7dde ("ALSA: hda: cs35l56: Perform firmware download in the > background") the wait was added to the get/put handlers, copying the > behaviour of the ASoC driver. But this was unnecessary and the equivalent > wait has been removed from the ASoC driver. > > When the amp is rebooted after a firmware download, cs35l56_system_reset() > puts the regmap in cache-only and this is only released after the amp has > rebooted. The regcache_sync() near the end of cs35l56_hda_fw_load() will > overwrite the volume and posture registers with the values from the regmap > patch and then write out any non-default cached values. > > That means it is safe for the Volume and Posture controls to read/write > regmap any time. > > Signed-off-by: Richard Fitzgerald Applied to for-next branch now. Thanks. Takashi