Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp96787rwb; Thu, 22 Sep 2022 15:04:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53jgHSqlR8NiYbk6R/IUUgMO2gLZrKPMneGpc+rlZ1DodT57NlD1+IOcg3fYSSuKeXJIQG X-Received: by 2002:a17:907:7607:b0:770:7ec4:fb41 with SMTP id jx7-20020a170907760700b007707ec4fb41mr4370078ejc.685.1663884252779; Thu, 22 Sep 2022 15:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663884252; cv=none; d=google.com; s=arc-20160816; b=yjBuuQt5s1rvynMTrBe0q/0Ktcijs0+nfjf/EIfYP7qDTK6uCOywhvYnvLr/42pxYf 9MEoQvEuoeUS/AfoZfm+sf6+BCTRqTM+EaoYa2poh+yA9aqzw4RYzYwFQs8hL6J3K+vG T0xl6YWW9+qiqnYBhHV7sAgOocq22/BnyaVZrZ1ZpIRLtgZXOtRW4Xw01qLoKP2LhsRE 7Av6Kjj5NmO7FljuEjXyRUYMkT57GXfS0meZWPcBzYOnMa/5ZyhcOBqMvK8OK82CXs0c ymiWKKshHjq/CvT/JlH+mziK1xXR3w1GMGvk7RXY/ZSgN1u149C8ctsGTgPaJwcvu0lQ vVyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3YdjZ7VPUxdfC5sRfXwx/0L+V0iZ1cHHxou9pXPTrn0=; b=XCfkcHe0oPfZGC5j3Q/vWGspJCPbV0PP7iLaHeJaUKYsXemswBDSUMOzjZwP0yyOvU rfoa4mEm3o+Q/bwIXsHbnD1svH3V1zSdRPWHL2LDfAORKSOuYBeUOMbgh+PQ53voCWs2 EglNDWZP8XTsVa4QiWdzwXduPLJCGuyUrTRGBa6tCxiNmCb9WJ+SaXGGAG+5bCLvl7Ed eUrUXblRt8179+mR745rhPClFhq8XQURr26OW59+H6CGRf84sZ/IGCmsLyGqWmDSVlS+ DZj68ori2kjVpGK9B3z8flMIymd3D4qxGRNTOzSA/hSO8yTouYbN4Vp8L/79UAMACywB F52w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LUdmXEY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a170906319500b00780a882d32esi5565339ejy.459.2022.09.22.15.03.39; Thu, 22 Sep 2022 15:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LUdmXEY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbiIVVjO (ORCPT + 99 others); Thu, 22 Sep 2022 17:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbiIVVjE (ORCPT ); Thu, 22 Sep 2022 17:39:04 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDA3A11264E for ; Thu, 22 Sep 2022 14:39:00 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id g3so17486641wrq.13 for ; Thu, 22 Sep 2022 14:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=3YdjZ7VPUxdfC5sRfXwx/0L+V0iZ1cHHxou9pXPTrn0=; b=LUdmXEY4WTCLFE96EnTufspOZgwzO9if4fnR/Ki/tDw4TDslehPs9KXAWqVQ90eX74 wr7N61D+a97NJnOs7WG5uEVR7FTjtHhiHo4C2F6126LiApGKN514zaeKrrwJnsP/zvq1 42Ii9hLAq4vPR27IJRA/ByOyomv5u5UI22rWwwivAzOPq5Z9/wo/h5H+5E5zxQewEhQM 0PYhr27vPRBTi1cbAJbZg6Uw2P37N7fKziMhHn1/AAbgWNQl2bMjevEOE+2qsA2fp87g uHA6cmo+ElyOcEEobYbt8FerYREw8vDcewHJG7mCrLGH5AinoqvTG9iP7zAuB3GRXqTg OlCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=3YdjZ7VPUxdfC5sRfXwx/0L+V0iZ1cHHxou9pXPTrn0=; b=bs21NUNFe6pN4GSTOHyoG+ec8O0cgtng2EmodE/PhvWbm0TdpSzhso95snEhiP7Ie8 CQSP6O0HyTFujV6l52cW1C9Iv1x9lx5jVsE/roFeR16oPHdsaJWp1YpJQe6EiM5zG8/y QQwLiaY+j8KFTyCCZX8gOMTrJ3HgdVz9gDHQ/Jf/96UC5IPUCHC9KCsBH+uINoLZIGhm Nbo2t7DKqUNuICopka1MnnMzBec5OCELk7BOwro8O6yqPsER/09dZQ9QuMF95wslbBf3 ENsGs4fqbsSNsQWKsjovMU6h9cvxKzS625Xux17BJouJHXXrzmflVLbMBJf5KQ+NaEPX +0fA== X-Gm-Message-State: ACrzQf3b9U6SCyuVcQXbvySSOb+5yjw7bpw73nhfpUFkpjQzUNmhVtb+ 1wjrBJlqObmf0Z10C8tenQ3i0g== X-Received: by 2002:adf:fa81:0:b0:224:f260:2523 with SMTP id h1-20020adffa81000000b00224f2602523mr3238333wrr.26.1663882739290; Thu, 22 Sep 2022 14:38:59 -0700 (PDT) Received: from [192.168.86.238] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id g14-20020a05600c4ece00b003b477532e66sm11907506wmq.2.2022.09.22.14.38.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 14:38:57 -0700 (PDT) Message-ID: Date: Thu, 22 Sep 2022 22:38:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 2/2] ASoC: wcd934x: fix order of Slimbus unprepare/disable Content-Language: en-US To: Krzysztof Kozlowski , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul , Pierre-Louis Bossart , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org References: <20220921145354.1683791-1-krzysztof.kozlowski@linaro.org> <20220921145354.1683791-2-krzysztof.kozlowski@linaro.org> From: Srinivas Kandagatla In-Reply-To: <20220921145354.1683791-2-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2022 15:53, Krzysztof Kozlowski wrote: > Slimbus streams are first prepared and then enabled, so the cleanup path > should reverse it. The unprepare sets stream->num_ports to 0 and frees > the stream->ports. Calling disable after unprepare was not really > effective (channels was not deactivated) and could lead to further > issues due to making transfers on unprepared stream. > > Fixes: a61f3b4f476e ("ASoC: wcd934x: add support to wcd9340/wcd9341 codec") > Cc: > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Srinivas Kandagatla > sound/soc/codecs/wcd934x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c > index f56907d0942d..28175c746b9a 100644 > --- a/sound/soc/codecs/wcd934x.c > +++ b/sound/soc/codecs/wcd934x.c > @@ -1913,8 +1913,8 @@ static int wcd934x_trigger(struct snd_pcm_substream *substream, int cmd, > case SNDRV_PCM_TRIGGER_STOP: > case SNDRV_PCM_TRIGGER_SUSPEND: > case SNDRV_PCM_TRIGGER_PAUSE_PUSH: > - slim_stream_unprepare(dai_data->sruntime); > slim_stream_disable(dai_data->sruntime); > + slim_stream_unprepare(dai_data->sruntime); > break; > default: > break;