Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1250082lfc; Wed, 1 Jun 2022 13:04:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQzQLqLdXHl5Pz86arEeVdchkH7/qKMTWmO1UVfh03Jm3twcb6wpyVemt4ny1SIXqL9z7F X-Received: by 2002:a17:90a:cf0f:b0:1e2:e62b:fd3 with SMTP id h15-20020a17090acf0f00b001e2e62b0fd3mr1116927pju.107.1654113897166; Wed, 01 Jun 2022 13:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113897; cv=none; d=google.com; s=arc-20160816; b=IisoLVyl+6CrJhRFwArIfYvA1BFTshMC+T2UCjLdFFVYz36qjwl4iTs+S08MpS/5j7 IJMnz+FWsaNSp/ojbw+1TXsr13wyy5AY79MLHSM5DPMuc8F6ir9j3Z+d2resxmqxgWn9 LymqC/RjH/6PwjYc763/zY1jo0rMa72HrQ7Ml98eFmEJ40616uN0MyStXaSdeo5rNBcQ 4BKsvj0c6pfqsR3nBVaP7RUqTc5m9/1i/BC+Ko5fc8OTkK2bTYhCbzr503cqo2svrJeC oPeDbAG/+V9Yo/ylfswnj5pOW5NTMGiwe81rvbi8iKxhBGQW6d08iDEBcYewS1yl93T0 G3Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P9LyQVuvmVsNZW+3nPRkSL6POGxEfk0Mn3guF1+YKuI=; b=O5qiVEkmAirl+SCIEe3OamYw9Q7WtEWRmKHM3nkUvvZSxWcSJMo/+5LAFeFGYpBNXV 2bxX0t7ZJh6/7uJmk6zqsSgeM6AyCapGxSRrlDj0nlrFM+WrS3FuHLwIZDe4d9PsH5Po NLR8xe/P9lCcJa5PAHjiSbmSpWNgKVANNAm7QJJzgxJThXxaiW+AnjoIdn71U13ZRgFH uG/3x5xRLu8Nf7Bwi1kX0bNSZ+414XcBqZey4CGziADaeo5VFU+5MqbzfkHvuch6hUiP x/KD77dTpWqQXV5r3CsYEc9rQL9YRrysAAqrl7FRZ+kLqSbBv4jUDC8fWkYSpRBm6ctA IPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KN2tTYof; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c10-20020a170903234a00b00158b259cf77si4023744plh.169.2022.06.01.13.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:04:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KN2tTYof; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0ADA224D03; Wed, 1 Jun 2022 12:21:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345295AbiEaWcO (ORCPT + 99 others); Tue, 31 May 2022 18:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240474AbiEaWcK (ORCPT ); Tue, 31 May 2022 18:32:10 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D30355A0B7 for ; Tue, 31 May 2022 15:32:09 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id j6so195384pfe.13 for ; Tue, 31 May 2022 15:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P9LyQVuvmVsNZW+3nPRkSL6POGxEfk0Mn3guF1+YKuI=; b=KN2tTYofItlyGe49xSbgyxQWQ327Y7iR6YoFSM9lhh+wiM1RX/01VGMPQk3muL0ImN ZabsYj5dpUeZY8QZi0bzCA53EjL5//Ogzm6HcmIBFQLYHH6Gdnqx/Mm0QCfURZwwN/6+ Bfh5dacPirFGkAjSKezJgUXm/9DqjlcIXhLQE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P9LyQVuvmVsNZW+3nPRkSL6POGxEfk0Mn3guF1+YKuI=; b=359JvSMfuPUuaCTRXw36nT6+ZapSFRm/MFZ5GzduFJkCxS6ZuUIDF5qAlbu33DzAew Z/nlKbhyBtg3BXggm/ti+vXZtjHR3XL0CJAL3mt3sIQkZSy8+M5jsBHn0SaXe8ZloJ+3 CsqfON/dvHi46Mam6ZWVnUsI1INGoR76qumYy7IRCyDwWeWtLyIWJHuNhLfUQ8hLTI8i kaVT8tLoMPH73EoPYdZf43HI9LrufBXCGDKtnQf4gSNPEdwaUJqgcGgFB1PszptyEU3j 0TYvUXg7YYYfQqQtFLg+y4I4N6XVZj2IpAYBWBjjAGZz2vqnlZd33AGpz5gW/upi27Hi a61Q== X-Gm-Message-State: AOAM5337p9uekNexLva/0gMAdqAWw8njT35arpUhPjEF6yB6I6ymQs1r b6NAwq55EL0R2e56x2vAgV/ASA== X-Received: by 2002:a63:5843:0:b0:3fc:34b5:8278 with SMTP id i3-20020a635843000000b003fc34b58278mr7454016pgm.249.1654036329384; Tue, 31 May 2022 15:32:09 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:e69e:f483:e751:7c7c]) by smtp.gmail.com with UTF8SMTPSA id b3-20020a170902d40300b001620a2737b6sm59801ple.74.2022.05.31.15.32.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 15:32:09 -0700 (PDT) Date: Tue, 31 May 2022 15:32:07 -0700 From: Matthias Kaehlcke To: Srinivasa Rao Mandadapu Cc: Stephen Boyd , agross@kernel.org, alsa-devel@alsa-project.org, bgoswami@quicinc.com, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, perex@perex.cz, quic_plai@quicinc.com, quic_rohkumar@quicinc.com, robh+dt@kernel.org, srinivas.kandagatla@linaro.org, tiwai@suse.com, vkoul@kernel.org Subject: Re: [PATCH v2] ASoC: qcom: soundwire: Add support for controlling audio CGCR from HLOS Message-ID: References: <1652877755-25120-1-git-send-email-quic_srivasam@quicinc.com> <51b8aca1-e038-4907-e973-ebdbebaf9b28@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51b8aca1-e038-4907-e973-ebdbebaf9b28@quicinc.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, May 24, 2022 at 04:19:47PM +0530, Srinivasa Rao Mandadapu wrote: > > On 5/21/2022 8:43 AM, Stephen Boyd wrote: > Thanks for your time Stephen!!! > > Quoting Srinivasa Rao Mandadapu (2022-05-18 05:42:35) > > > diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c > > > index da1ad7e..445e481 100644 > > > --- a/drivers/soundwire/qcom.c > > > +++ b/drivers/soundwire/qcom.c > > > @@ -1333,6 +1337,10 @@ static int qcom_swrm_probe(struct platform_device *pdev) > > > ctrl->bus.compute_params = &qcom_swrm_compute_params; > > > ctrl->bus.clk_stop_timeout = 300; > > > > > > + ctrl->audio_cgcr = devm_reset_control_get_exclusive(dev, "swr_audio_cgcr"); > > > + if (IS_ERR(ctrl->audio_cgcr)) > > > + dev_err(dev, "Failed to get audio_cgcr reset required for soundwire-v1.6.0\n"); > > Why is there no return on error here? Is the reset optional? > Yes it's optional. For older platforms this is not required. If it's optional then either there should be no error message, or the error message should only be logged when the version is >= 1.6.0. There are few things worse than a kernel log riddled with misleading error messages.