Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2824883ioo; Tue, 24 May 2022 06:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3cNnNxHFNrkJMGu3B3/7jWDlNU4uOIEoJ+hMUVGGPEMH905SeCKKXCXg0LAL1x0LwLULO X-Received: by 2002:a17:906:ae43:b0:6fe:a207:5cc3 with SMTP id lf3-20020a170906ae4300b006fea2075cc3mr20433566ejb.19.1653400318926; Tue, 24 May 2022 06:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653400318; cv=none; d=google.com; s=arc-20160816; b=G3yMuNYry1vq2WrWPpAowOAJ/Mic93pdkbLGv7d0003iqcudFL2RN2ewQUwak0Ztmc tLn7/5h+R0914IwkIYBJm2X65Y8BKSJVH1DkZJuukDTxe8A/WWtFQRRYbx++iRHpiWMq 2VUe8SikViHsJxIjYKrGo0JbgSpMKOQAd64fhfNNk5te7oMuoeJZZt0mWN1dDaYwr6ps IN7QZOq/mPTYu9nG4ruGEw1J6TC6z8I7YY67EswXLOiuVlqZfNXXlcps/nYU+MhLcDc3 bYboFF53Z8M1UoGxHB6CxB0tjY6GG/duzJpz2NnNXnI2taSlIyjau7jDouUJhMv4QKd6 szLw== 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 :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=Tk/huaI+Brj6VolyTS3vaRaaffgo18jJiY/piQh5zVQ=; b=wN10eDCD5pt7QHXg41Xw702Xi7bovw0n6f6hgksmClrasZ6yUesB8TnntI3ZVZcft1 xVhg1CilCSYUaMhy2aonOyp+rTrpbiIKw+YmI6YmQva/RTGWnDldEzmw6pQY8ArNNYrz poUU8nXpsmzCXBSPLEz+GWDXLbwpq7HlPrvIC6cw/q1u0ip8tIVAJez/2Pijt+8huQUP DgIPq4wSm6SBPUF8nTgdPBNdGydaVzRyP2Tqy4bB2xydX3RVrY9OSXY/pMV5A0oui63y S25z2+C1x+y/3DdwfE4PMNgq5grBBVexyWj3S49xcjWarmHERBgyQD6U7g2K2y6zCmDw 5m+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="JMxdD/KN"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa40-20020a1709076d2800b006f8c05429d0si21630437ejc.444.2022.05.24.06.51.32; Tue, 24 May 2022 06:51:58 -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=@quicinc.com header.s=qcdkim header.b="JMxdD/KN"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236372AbiEXKt7 (ORCPT + 99 others); Tue, 24 May 2022 06:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiEXKt6 (ORCPT ); Tue, 24 May 2022 06:49:58 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45F1D5F8DA; Tue, 24 May 2022 03:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653389397; x=1684925397; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=Tk/huaI+Brj6VolyTS3vaRaaffgo18jJiY/piQh5zVQ=; b=JMxdD/KNFlqL2GSVFSTx3Owy9pgL4I27Vp7arGu5oDpqZzC3tGfikt3+ K2CzFZTNgbq/UfqsSyBW1FfXuTvUztDXQG2CBDv30GDvd3algQDBZoQxK 5nyvdqZJ3svKIJYhzU2CPXY73Ig7+HusftXvy0wLhWB4HaNtRpx0gLnyD A=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 24 May 2022 03:49:56 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 03:49:56 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 24 May 2022 03:49:55 -0700 Received: from [10.216.5.195] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 24 May 2022 03:49:49 -0700 Message-ID: <51b8aca1-e038-4907-e973-ebdbebaf9b28@quicinc.com> Date: Tue, 24 May 2022 16:19:47 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v2] ASoC: qcom: soundwire: Add support for controlling audio CGCR from HLOS Content-Language: en-US To: Stephen Boyd , , , , , , , , , , , , , , , , , References: <1652877755-25120-1-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. > >> + >> ret = qcom_swrm_get_port_config(ctrl); >> if (ret) >> goto err_clk;