Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp96765rwb; Thu, 22 Sep 2022 15:04:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Mvgadg6jlVn8osfUsN99+2IuMqP8wRjV5ykrx0GiHwjMLHB2K2Qc3NiFxUKVnsfPO0FDy X-Received: by 2002:a05:6a00:150c:b0:545:cdc2:94e5 with SMTP id q12-20020a056a00150c00b00545cdc294e5mr5776334pfu.37.1663884251991; Thu, 22 Sep 2022 15:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663884251; cv=none; d=google.com; s=arc-20160816; b=vRPPp18qRfBSlvlO9J+YaX8EjQ5NtReZpwcHA9Pg2t7AWzwmOVQLkjf0xO7TPYriSQ PuCiAqENdVAydhRZxf27ON7XibeoxyvbdGgNCxxItfhiVb5mi8z9PqPdaAOWsCyP2mif gNe6T070sCuQ6uSpSNZKStUXz0lZwKzpQrQ1in0WyQbiRzoHFUOEZ8DpNNtPHhD4nbIf URx/A8/3niNXGY09vrLBJXi5aR+BIskuIHXp3xUQW+D3OL6u7qzWHtxzB4Kbm9dFheTs wvKn+tlfQoLlBQUSeHYcXLLjSWzhB6tpwXOo4j4OPdfRoB0kq9aBfhZCNPMximgm0jfC 9k3g== 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=rE4qkoQWFMK80vrDxYXRfq6e/ZoyI2F/bN7ZyOFnWvk=; b=h9BhFz3JlHy+6A2BioR+VzckvkV9QsjOsYq0q1XJBR6hFfH9z/CKEUIbjlr9Wqgh/n bxXxQ/5sLlt8gjkmNEso0eQ7J3jYkiFycJkHPT1gpeBp4CWDvmxUoI8+3b49P9DT/Uru hUexQUF1bGpXwlNXQ7ZNM4DVJ4viz+me7juOWDZnv4SZykMHQxXo7hkhsmdIg878QTbk 03CqnWM4P37dF44l3RcSk4anVaJN+CnoOxwUnqFKpyh+u6boseCczEJH7/5+LeMxat3W Y4qcak9mawrsOVNDQANPdXGOgfHpCQH6vIcwJJS71yzCTix5yiUU9S6j3UGD5mHSaCRG TZuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AjEKNitG; 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 f19-20020a056a0022d300b0053864fa87basi2383981pfj.0.2022.09.22.15.03.52; Thu, 22 Sep 2022 15:04:11 -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=AjEKNitG; 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 S231192AbiIVVis (ORCPT + 99 others); Thu, 22 Sep 2022 17:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiIVVio (ORCPT ); Thu, 22 Sep 2022 17:38:44 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D03103FF6 for ; Thu, 22 Sep 2022 14:38:43 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id t7so17493905wrm.10 for ; Thu, 22 Sep 2022 14:38:43 -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=rE4qkoQWFMK80vrDxYXRfq6e/ZoyI2F/bN7ZyOFnWvk=; b=AjEKNitGnBVVvUIhiBOOIz384XMAwt2GfXvy5+08/YqD4eDCPYNZVPX2NeU6XqysoS IkNDeCWYZTXuA0ePbraD+WK6JEvEptSZw0mDM/KZhl4i7ZEEebKGysFOUKn3iQYybmIF 0mGzx7X1bTpfnm+s4oSJ51J8jLHhxCtoZCM3bcyLWR5g2kAa84ndQQBtj7F44biRhEO0 vkpvfaKbpmG9W8CJ722xEeVjpiHSEHoJwKmkPficS5NTXNjrFXu3ugYFcmDHX6Yh9mHV PVq64ZARu8HlsBseE6KOtz2ASQGN9Yy7OpOWdLsLOhB/HgnYmZWCOhJZsqp0JXaoYpq+ Jtww== 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=rE4qkoQWFMK80vrDxYXRfq6e/ZoyI2F/bN7ZyOFnWvk=; b=CAt5zz32KWI6g5d/sOMsSNEn/alzJeBa4OdhrEdKPBlMr4FLJUoLixXLBrX3kH7RKU VDvN0JG+iqdPilx0S7z+k0gPFKyNqggALL0Qjj5D1K4JoDImlUpwF+CTCuIgAAkVILb5 Jlkns/ReaDc9neNmTBYi3+fv6SnlyJ5aoYi+z2bIs/CFzGyLaprU2VgFb6oQJQWL6Tds R9k9mQf7Vo8CEkwY/7ePFXL4DLEquCh/pz23DEIfYoGqkHWow5Yq1BIGU4EVd7GyExy1 TYzOChxh2cEJK4NJ7jTSDkJlWIqs/OIw72Lf3b85UUleUF4Tn5uN9m2nbFJuXtYV7yHU 3NCA== X-Gm-Message-State: ACrzQf19aplqkKUayg3hYR8fTIGPR3dc1ZAr3gsYnh62mtftrG3XKSjy q+LUwSkjAwVwlheTxfIEFjdwfQ== X-Received: by 2002:adf:f2c9:0:b0:228:63f6:73c2 with SMTP id d9-20020adff2c9000000b0022863f673c2mr3282652wrp.554.1663882722308; Thu, 22 Sep 2022 14:38:42 -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 n42-20020a05600c3baa00b003a319b67f64sm10953764wms.0.2022.09.22.14.38.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 14:38:41 -0700 (PDT) Message-ID: <15b6bf59-9a76-8a97-cb92-701277a2f80d@linaro.org> Date: Thu, 22 Sep 2022 22:38:39 +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 1/2] ASoC: wcd9335: 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> From: Srinivas Kandagatla In-Reply-To: <20220921145354.1683791-1-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=ham 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 Thanks Krzysztof 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: 20aedafdf492 ("ASoC: wcd9335: add support to wcd9335 codec") > Cc: > Signed-off-by: Krzysztof Kozlowski > --- Nice catch, Reviewed-by: Srinivas Kandagatla > sound/soc/codecs/wcd9335.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c > index 06c6adbe5920..d2548fdf9ae5 100644 > --- a/sound/soc/codecs/wcd9335.c > +++ b/sound/soc/codecs/wcd9335.c > @@ -1972,8 +1972,8 @@ static int wcd9335_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;