Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35DD0C7EE2E for ; Mon, 27 Feb 2023 23:48:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjB0XsH (ORCPT ); Mon, 27 Feb 2023 18:48:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjB0XsF (ORCPT ); Mon, 27 Feb 2023 18:48:05 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A422083E1 for ; Mon, 27 Feb 2023 15:48:04 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 19AAD1FDA9; Mon, 27 Feb 2023 23:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1677541683; 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=3i/mCxhNSrbvf9Qr3qMeM0ojflb+JEmsr0zh2f/Sg0g=; b=xQwK0UHBSe4Pvzau9AkBlToN9kwZe015gxGbBDNnuQDWfnhIyDN9/r/Et0Gs1HBI4i9Vnz d+jE6TNXKprHvm63hjaXTxWxIfgBSFHMo1AvuO4tASfUd6VdqFynqiJ6M7o62AwCcoxCRC eh3ZoRHBZB3J9mm9bQyPnhIqksWjk2Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1677541683; 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=3i/mCxhNSrbvf9Qr3qMeM0ojflb+JEmsr0zh2f/Sg0g=; b=yIkjKxxHFS3Gbf+d/wgoGqlt8hPK9tOidbFt4BZGGT7XD5MJM9cug+EgZPho+UDc2ZKAzP /N/7ArhiP+XMk5Bw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0319313A43; Mon, 27 Feb 2023 23:48:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sAZgADNB/WP5awAAMHmgww (envelope-from ); Mon, 27 Feb 2023 23:48:03 +0000 Date: Tue, 28 Feb 2023 00:48:02 +0100 Message-ID: From: Takashi Iwai To: Richard Fitzgerald Cc: Stefan Binding , Jaroslav Kysela , Takashi Iwai , , , , Vitaly Rodionov , Martin Wolf Subject: Re: [PATCH v2 1/3] ALSA: hda: cs35l41: Correct error condition handling In-Reply-To: References: <20230213145008.1215849-1-sbinding@opensource.cirrus.com> <20230213145008.1215849-2-sbinding@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Feb 2023 12:16:43 +0100, Richard Fitzgerald wrote: > > On 13/2/23 14:50, Stefan Binding wrote: > > From: Vitaly Rodionov > > > > Function cs_dsp_coeff_write_ctrl() can return 3 possible values: > > 0 - no change, 1 - value has changed and -1 - error, so positive value > > is not an error. > > Fixes: 7406bdbc4fb8 ("ASoC: wm_adsp: Return whether changed when writing controls") > > > > Signed-off-by: Vitaly Rodionov > > Signed-off-by: Stefan Binding > > --- > > sound/pci/hda/hda_cs_dsp_ctl.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/sound/pci/hda/hda_cs_dsp_ctl.c b/sound/pci/hda/hda_cs_dsp_ctl.c > > index 5433f6227ac9..463ca06036bf 100644 > > --- a/sound/pci/hda/hda_cs_dsp_ctl.c > > +++ b/sound/pci/hda/hda_cs_dsp_ctl.c > > @@ -218,10 +218,10 @@ int hda_cs_dsp_write_ctl(struct cs_dsp *dsp, const char *name, int type, > > cs_ctl = cs_dsp_get_ctl(dsp, name, type, alg); > > ret = cs_dsp_coeff_write_ctrl(cs_ctl, 0, buf, len); > > mutex_unlock(&dsp->pwr_lock); > > - if (ret) > > + if (ret < 0) > > return ret; > > - if (cs_ctl->flags & WMFW_CTL_FLAG_SYS) > > + if (ret == 0 || (cs_ctl->flags & WMFW_CTL_FLAG_SYS)) > > return 0; > > ctl = cs_ctl->priv; > > Hi Takashi > > Could you queue this patch as a bugfix for 6.2 please? > The cs_dsp patch to return 1 for changed has gone into 6.2 > but we missed that this hda_cs_dsp code would break. Could you just request the cherry-pick of the necessary fix commits via stable@vger.kernel.org (with Cc to Greg / Sasha)? I've been still traveling in this week, so it's better for you doing that by yourself. thanks, Takashi