Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp529397rwb; Wed, 18 Jan 2023 22:17:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXuEJigFFlcDU3L9O0dT1xfvCQJZfE56E0TJZK2CA8vyW/1b6HkWlUEuRkpDynEuDZq/BGfD X-Received: by 2002:a05:6a20:9e0e:b0:ac:7a44:db55 with SMTP id ms14-20020a056a209e0e00b000ac7a44db55mr8704576pzb.39.1674109055852; Wed, 18 Jan 2023 22:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674109055; cv=none; d=google.com; s=arc-20160816; b=t5/JCnySIpT0S/CLsFDKMFCBEtqMc3NmmJwMYQCoS8baPw7a1bIL8qDHTE9v4g1iGq WJloMCEBKeZOUVlMfR/TBx8BdgE19sci2jEOERdSNCwjURnkBti5a4eYKvyDA8q3UJXK KqwthwGByGJEeCLRMJ5tWohEvkIbNbzDizqZ4UtrHQJSKNhyqXbEFxqZtdYNtHBM1QYL DbMQNA8xrekErtG+KKv3rHIGTzCeabZjG1XhHUDOymFxFTskgHFCiuajuUwqQf5ufr5e ROEHsAzB4+2DSsUfBCCeyL7bBv3V8TcJGZ06ZHjohl6UHdS6s0QAk7Y1xZNDfV7teYuc L6Mg== 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:content-language:references:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=Zx3+u7KVTEPOomdLGNzu3Yfrw+y7cJzEGjCDC8iStvE=; b=bDxhAzgWz6i5qDn1df/kwTnLTh3JocDu4T3CWyb+YnK9yA/AxUfPkWa1TX10ZG7T0W cL3XqyZb1kZl2fGrVnmQy3qA2cIW8SF14v8NKvvVWg+5t2WXEEW5ag5hDtCCBGB10PCZ l2s0MxF6lMyOwvItsqe4m6hpL2bOxTs9GkTzElhzb859PwuqCAs2N/FH1S93wBYvEYHb YBxDYQdSOlcOuNks5XAHlVQrFTzbPQRtLPCzIyIlon4+xTg7kQUKoi3ZOYGfsGkXB8nP jptNJtuMi/BH7iqmrO0l1osas1FDCRxke7TgNbawU9c3SbZRuGhX19wBdzt08u7uiJ58 8eMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kp5hxlBW; 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 s14-20020a632c0e000000b004cc95c9ffacsi12315949pgs.1.2023.01.18.22.17.30; Wed, 18 Jan 2023 22:17:35 -0800 (PST) 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=qcppdkim1 header.b=kp5hxlBW; 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 S230045AbjASGD0 (ORCPT + 43 others); Thu, 19 Jan 2023 01:03:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbjASGDW (ORCPT ); Thu, 19 Jan 2023 01:03:22 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F23D654DB; Wed, 18 Jan 2023 22:03:21 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30J4uixX031817; Thu, 19 Jan 2023 06:03:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : from : subject : to : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Zx3+u7KVTEPOomdLGNzu3Yfrw+y7cJzEGjCDC8iStvE=; b=kp5hxlBWvSQ/XHtN8gZM2dxVD/d+rOycj0N/x0XmYisSkav1zMH9TALNcvDamMe3AazQ gtTnrrAtSX6v2Uxj8d5ZRzHY6n7yja5UgXiSwjspplrvkJk0vGq7K+/T9FeDQyOIT4Rj 8gLaCfpvCfVa6rcvsLBX66xaCS2aRAJtJBw/lmYOlaS02xDLOkiDYjFLPf+T1qTbQUNU jjyJuBAaMtY3+alt3drJqa+I6dyDSMCZOEPyL7kEjAOLlOLvD6meVh2S1glKW/Mnzn9j QbKueHKs3KddJX1yNvPm8IPyrpqWhRsx8P46H/C0TcIdLKIqFPeayQAdF+OMFZrztgQM Og== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n69uytn3q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 06:03:13 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30J63C5F006659 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 06:03:12 GMT Received: from [10.216.43.228] (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.36; Wed, 18 Jan 2023 22:03:07 -0800 Message-ID: <96a20619-6253-3380-9a25-5f8d8b6a47cf@quicinc.com> Date: Thu, 19 Jan 2023 11:32:39 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 From: Srinivasa Rao Mandadapu Subject: Re: [RESEND v3 4/4] clk: qcom: lpasscc-sc7280: Add resets for audioreach To: Stephen Boyd , , , , , , , , , , , , References: <1672849297-3116-1-git-send-email-quic_srivasam@quicinc.com> <1672849297-3116-5-git-send-email-quic_srivasam@quicinc.com> <6cea0a3f-08de-47d5-99d1-74b0d8c7b732@quicinc.com> Content-Language: en-US Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 8t5aiBsn8df7YEHofZN4oLrX8htXWwCL X-Proofpoint-GUID: 8t5aiBsn8df7YEHofZN4oLrX8htXWwCL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-18_05,2023-01-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 adultscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301190046 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 1/13/2023 1:05 AM, Stephen Boyd wrote: > Quoting Srinivasa Rao Mandadapu (2023-01-11 23:53:23) >> On 1/12/2023 2:54 AM, Stephen Boyd wrote: >> Thanks for your time Stephen!!! >>> Quoting Srinivasa Rao Mandadapu (2023-01-04 08:21:37) >>>> diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c >>>> index 85dd5b9..1efb72d 100644 >>>> --- a/drivers/clk/qcom/lpasscc-sc7280.c >>>> +++ b/drivers/clk/qcom/lpasscc-sc7280.c >>>> @@ -102,6 +104,18 @@ static const struct qcom_cc_desc lpass_qdsp6ss_sc7280_desc = { >>>> .num_clks = ARRAY_SIZE(lpass_qdsp6ss_sc7280_clocks), >>>> }; >>>> >>>> +static const struct qcom_reset_map lpass_cc_sc7280_resets[] = { >>>> + [LPASS_AUDIO_SWR_RX_CGCR] = { 0xa0, 1 }, >>>> + [LPASS_AUDIO_SWR_TX_CGCR] = { 0xa8, 1 }, >>>> + [LPASS_AUDIO_SWR_WSA_CGCR] = { 0xb0, 1 }, >>> Why are we adding these resets again? These are already exposed in >>> lpassaudiocc-sc7280.c >> As explained in previous versions, legacy path nodes are not being used >> in ADSP based platforms, due to conflicts. > What is legacy path nodes? Legacy path nodes are for ADSP bypass use case such as nodes lpass_audiocc, lpass_core, etc. > >> Hence lpasscc node alone being used exclusively in ADSP based solution, >> resets are added. > I think I understand.. > >> In probe also, these reset controls are enabled based on >> "qcom,adsp-pil-mode" property. >> > but now I'm super confused! Please help me! We shouldn't have two > different device nodes for the same physical hardware registers. > Instead, we should have one node. The "qcom,adsp-pil-mode" property was > supposed to indicate the different mode of operation. > > Maybe the audio clk and reset drivers on sc7280 are duplicating each > other and one of them can be removed? Yes agreed, that for controlling same registers from two different drivers is not good solution. But, when we are validating ADSP solution, we have seen issues like ADSP is not coming out of reset with the existing bypass mode clock drivers(lpassaudiocc_sc7280.c and lpasscoreecc_sc7280.c) enabled. As per your suggestion, will try to address that  issues with "qcom,adsp-pil-mode" property and avoid duplicating reset control code in lpasscc driver(lpasscc_sc7280.c).