Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3268687lfo; Mon, 23 May 2022 00:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVOlns/quYKRIoOygerF0S69v4XuukkliSKgkXkl0p74Bpg6stTT+pmbN5I78GElIeRwWR X-Received: by 2002:a63:d3:0:b0:3f6:139:d62 with SMTP id 202-20020a6300d3000000b003f601390d62mr18891739pga.113.1653290449471; Mon, 23 May 2022 00:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290449; cv=none; d=google.com; s=arc-20160816; b=mM8fHk1m8oE17rbP/vlymEpf40OMg/on7YCSRy34ccTcBmueRIMgYj6h8lwt6mJux1 PMnhzgaj5Gfppot0Cp4v+ziPh5RySodnUUqoGZGpZBYmCV3HNQcstcVHAXleEvUVb8Mc WCA0x7qUwnnVor8gE2ZcSPz2COyIc6Zv3df5/C8+eb2/gpxsIfY7k1FN6hgAKx+vn2OK cLDU6vVtQe/WGMazDk8u7ujEDpDWtnXzApccqHMzciaR2rRUq6i7z6Iteps8eHdam4IO NkAuhUjdVgRFfW5S85PlGKMiULFcPtlVgsUkvvwMSlbfyGCZOsny9FIHr+ryXttFz3uF HoZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=z9YTOjtD+Dp8ysX3Zqk41W0+lPLgTo0iBxjrvvqtCBU=; b=KqbcgTdu+vo7+/ySREVsKX+GpgNAcw7o8Bkm1mHs+sfoO/U3sAfYiCA57XPonf3o/s A7+40X9XytE3R4U/u2bCiBZji4LIZoJkaEkBFE/kyozMypEwXKLbpPoCH3ksOcuw+lSM bJSavu4efOWbCN+uOsbxIjCho8ur9WiKL3YC9inwC0BReNapL5hKzG3rwVkEKlibgEuD O6YiosiFguRZDjxTBaZ83snxRq6RNNI3XqJu+T5cgwtt2K1vXxPUe26gsXfn/xMzd/JE v9GfkRsrK4FOito8TQ21am2Mll8KWWxbOT8Z+8FTtDZA/uCInPlr48hRwjDxMP3lbJyJ D7Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cLDsvBQl; 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 k70-20020a638449000000b003db2e79f827si9262936pgd.150.2022.05.23.00.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:20:49 -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=cLDsvBQl; 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 9F33D986C9; Sun, 22 May 2022 23:36:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbiEUDNt (ORCPT + 99 others); Fri, 20 May 2022 23:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232435AbiEUDNo (ORCPT ); Fri, 20 May 2022 23:13:44 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E65415EA63 for ; Fri, 20 May 2022 20:13:43 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-e656032735so12378176fac.0 for ; Fri, 20 May 2022 20:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to; bh=z9YTOjtD+Dp8ysX3Zqk41W0+lPLgTo0iBxjrvvqtCBU=; b=cLDsvBQl3CZnZjmn3PmDvOxQs7A+4qpMSGeH+GcvPeqE6Rvcs0ccD3rvO0oo6H8M4v yEhmbpIEQToKgIxmIMitMFetTqQiY55KOQGQWEmS9133pgxN41HPQqgKkrwNCHndBuAT h66dGug5YTy2lURMzBPiPK2i5uxrMz3oPziA8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to; bh=z9YTOjtD+Dp8ysX3Zqk41W0+lPLgTo0iBxjrvvqtCBU=; b=hnWU2sIOOQ9yixSjGR+R7s3VYrGy0VUpyGiVx5vX0ZUrIDJWfpR39uakoTRsVFb7KE RkgoW9G4bNOImiYlLEw4v+L4A1D8vE5/2/DVW4piPdImYYpvQrziyC57BYEzYfWaUO/M EPrmGOA34/HSHGNdhaF37bhf9COyUGDD75FdOOQ7agxxMRX/P5sGZAGFk/Mty7q/Vpgs AcOhUvF3j1koFva6IvPbFpBUbcRaOTrRFupY5ngvSblnb5kZYbmdZLNqmJGWJi3OdV7G /UtyRRpnIkx9osWxw3rnj/dIuBO9gwAyqRciCwGG5uoSb/Uow+nsSfOkwDFTXOe9hkFK mv9A== X-Gm-Message-State: AOAM533X7EMUSnFE7L6jZhwdIEpy9oAA/1NJxv/n2FV3BpDrFUd5IdEq YhGlaMqvwTthrtRkF2nmr8m/PKSCi3kLcvTIjgM3pw== X-Received: by 2002:a05:6870:240d:b0:f1:b878:e97c with SMTP id n13-20020a056870240d00b000f1b878e97cmr6985165oap.193.1653102821168; Fri, 20 May 2022 20:13:41 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 20 May 2022 20:13:40 -0700 MIME-Version: 1.0 In-Reply-To: <1652877755-25120-1-git-send-email-quic_srivasam@quicinc.com> References: <1652877755-25120-1-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Fri, 20 May 2022 20:13:40 -0700 Message-ID: Subject: Re: [PATCH v2] ASoC: qcom: soundwire: Add support for controlling audio CGCR from HLOS To: Srinivasa Rao Mandadapu , 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 Content-Type: text/plain; charset="UTF-8" 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 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? > + > ret = qcom_swrm_get_port_config(ctrl); > if (ret) > goto err_clk;