Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp754157rwb; Thu, 19 Jan 2023 02:09:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIFQbkSf6Aq61V7dKCyAzqPBt7t9kygH4TGpwlZePMxTaioiaKR61y/ixKx2dbffxEoegA X-Received: by 2002:aa7:d392:0:b0:484:7560:1a77 with SMTP id x18-20020aa7d392000000b0048475601a77mr10487345edq.16.1674122958008; Thu, 19 Jan 2023 02:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674122957; cv=none; d=google.com; s=arc-20160816; b=A7WQmW3Uu1CPC6linXMuep0ePdd3DwZC0s0rdu5WfeQ3HbBkGgySKnBLIdeUW0opUG 0f/ObQngdAprOhR1Ru9RdbsKolCk03V9jMy1kdpkzj3zVZdydd1LwXFjS8j+cYgJ7ODL ceFgIBwvdb6OaUW/mvAY62g6ltFxUSUrBNrCndWDnXptMPlb5q/ahMX+gDW01jkAOMui c7n567ep8r57zThSHeTuciN9H+zHmWU9KSWHzLMpIdUo+2liK7BXhWOyLFimF59gWfec CY1tPSVvCODKZjE/3gIEMFfTT2OUbkevM1ZnL4JcdP5u7wERaCucE8s+dx/misgiQVAh FIXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lmeM+DB2VDIPrS3hzzoUz5qgNKJjawV/XSN9MCTs++0=; b=hodKeopv03ERWf4sfnEfYLEwbz1VZC6PQ/8fMPXYNhPYiVzEAbXMR2S9l4/IvMJOuC x+WeF4dkysmV4nkMU/NHKK4kKqSCyifeAabTplih4Z3LWxAc5p3oEWxS+ry6WQco5RFZ 9zltKolfxGZjvrEokhXQv1QBa2RSEDZk2imkmC01lsaQl+fX/KW18xZoLIUtvmosYpz3 hL+bnDirV0nM2rDR3q1BsNknHwzvnlJwbqm5gr8FOF40rdMdH9SDZyS6xquMGpAa7+3z x33WOAJlsPVKjgPZ505TLiQ1evvuVVXA9rjrT0kTDzjEIgbLvDffx+B8R1Pth424hpy/ 7GJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=d6UDnU3b; 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 ne10-20020a1709077b8a00b007c170f6b32dsi25172946ejc.516.2023.01.19.02.09.07; Thu, 19 Jan 2023 02:09:17 -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=d6UDnU3b; 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 S230145AbjASJ2b (ORCPT + 44 others); Thu, 19 Jan 2023 04:28:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbjASJ2R (ORCPT ); Thu, 19 Jan 2023 04:28:17 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60F6A69B18; Thu, 19 Jan 2023 01:28:07 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30J5PYqD015392; Thu, 19 Jan 2023 09:28:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=lmeM+DB2VDIPrS3hzzoUz5qgNKJjawV/XSN9MCTs++0=; b=d6UDnU3beBiheTtXXegMvrlbKb4wwhx33igVPYKLBGn+IFifV5SzX2ZHdEKsnUB/vqOH 5rZ+y0wdQbMB/thITZKyrAZ+UOPXE6pg6IbzjmgWTVKSheA1S7hSKMTa8DjutDuZTw64 7Og9X9QuP4Y78zIx72rEKhH7wCoZxvruuIbtQBvF0fo+5VDf0RQY2h/bNkMpy0ScbpAV uxngXhcr1F2nLrFutCB+BhC3FgwO6V8Qpm3pECV6TxBguNJWtEVLIMbVkbxclp2T5yuQ t+JKH8Xh9P9YDgP+aJVsLZ2GjNTEXeppa3J3gDLgzCPBmU2fcm126WYQ3aMSEr/+5i2f 4w== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n5ws6mt6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 09:28:00 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30J9RxmJ024464 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 09:27:59 GMT Received: from hu-srivasam-hyd.qualcomm.com (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; Thu, 19 Jan 2023 01:27:54 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v4 3/6] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Date: Thu, 19 Jan 2023 14:57:21 +0530 Message-ID: <1674120444-23706-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674120444-23706-1-git-send-email-quic_srivasam@quicinc.com> References: <1674120444-23706-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: aVns9IAGXD_7Qw4zS-47ci038O061ZS- X-Proofpoint-ORIG-GUID: aVns9IAGXD_7Qw4zS-47ci038O061ZS- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-19_07,2023-01-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 mlxlogscore=999 clxscore=1015 lowpriorityscore=0 mlxscore=0 adultscore=0 spamscore=0 malwarescore=0 bulkscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301190076 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The qdsp6ss memory region is being shared by ADSP remoteproc device and lpasscc clock device, hence causing memory conflict. As the qdsp6ss clocks are being enabled in remoteproc driver, skip qdsp6ss clock registration if "qcom,adsp-pil-mode" is enabled. Fixes: 4ab43d171181 ("clk: qcom: Add lpass clock controller driver for SC7280") Signed-off-by: Srinivasa Rao Mandadapu Tested-by: Mohammad Rafi Shaik Reviewed-by: Stephen Boyd --- drivers/clk/qcom/lpasscc-sc7280.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/qcom/lpasscc-sc7280.c b/drivers/clk/qcom/lpasscc-sc7280.c index 5c1e17b..85dd5b9 100644 --- a/drivers/clk/qcom/lpasscc-sc7280.c +++ b/drivers/clk/qcom/lpasscc-sc7280.c @@ -118,12 +118,14 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) goto destroy_pm_clk; } - lpass_regmap_config.name = "qdsp6ss"; - desc = &lpass_qdsp6ss_sc7280_desc; + if (!of_property_read_bool(pdev->dev.of_node, "qcom,adsp-pil-mode")) { + lpass_regmap_config.name = "qdsp6ss"; + desc = &lpass_qdsp6ss_sc7280_desc; - ret = qcom_cc_probe_by_index(pdev, 0, desc); - if (ret) - goto destroy_pm_clk; + ret = qcom_cc_probe_by_index(pdev, 0, desc); + if (ret) + goto destroy_pm_clk; + } lpass_regmap_config.name = "top_cc"; desc = &lpass_cc_top_sc7280_desc; -- 2.7.4