From patchwork Fri Jan 20 12:46:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivasa Rao Mandadapu X-Patchwork-Id: 46332 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp178095wrn; Fri, 20 Jan 2023 04:48:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvExpYGjcKFDjCGU6d2Bv7Crj048mZ8NNfUOVwtTfcLMhy43wgK4lkhLoembAh5ECYSJEiF X-Received: by 2002:a17:902:e205:b0:189:c8d9:ed30 with SMTP id u5-20020a170902e20500b00189c8d9ed30mr12529551plb.24.1674218931391; Fri, 20 Jan 2023 04:48:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218931; cv=none; d=google.com; s=arc-20160816; b=L3pnOdPJH9V/dhbu2UrG7R7gVWK6vagy1wFCpFG/Ko0XtoyJapru4BKSDCBRtos2UU TxRxdQ/oy4UqR/cDfl9G25vKbl9iqP0FF5vkndks3qIUTM4KzdKMjez/xeOw0DpjNON/ Uw98yHxA2cVX14JtB+6Z+Qvwnk+YqQzJJnB57FrXKU9vuhutn4GlVyQdBRjEMHyFqSvT m7qqMQbyB3DYLnAVPhLdnFp8d4vk9X2baY8yaR2wiwHLtHLFj9XVhVIjd+Aq6kLqaWCH u1vZs8X7Gr5JziEmZe+qRkaCLiZABLqHrLH9vyi5gGbYeDUuZHrvr6jWFKsLpaQeVR/Z ELTA== 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=ZITaSsXyv7HHD6tCvPMLVq4LJIcdQMICMQICFg6se7KpOkoLxUJ/MA/cbzarqtEBUs X23SbI3Mn1GSPruXI+T1JXCJ2DdyD1f3vpQHCh0IM1EZVbB866XXwBTxy77sxzu85bxl GiuQfv7wn6KiFaLvn2bCS/S6OwaMC6HV87cO5uQq1FDdxVMX0LtHoediG52gV1Xm9K2z Mj7w1G4HIToYwQCE0LaQODWxCHokHtP1NgxRPmyPzKPXHHt3pdUmCjsY64JIB9oTGIhU 8Rce9rIzE5gBST6W3VBRPohTHAUZO47yJxZNoOg+9H+bBK0IRBklbSR0I21M3+U8OeiR TU0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DqgfEIsV; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a17090282ca00b001947cc33552si18643634plz.462.2023.01.20.04.48.38; Fri, 20 Jan 2023 04:48:51 -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=DqgfEIsV; 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 S230335AbjATMrd (ORCPT + 99 others); Fri, 20 Jan 2023 07:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbjATMra (ORCPT ); Fri, 20 Jan 2023 07:47:30 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E356CBF881; Fri, 20 Jan 2023 04:47:26 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30KCCFnt000437; Fri, 20 Jan 2023 12:47:20 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=DqgfEIsV0kjz8q0Jq+Et7b2GCPhpJgZJRYdf8Gvcqgv6Nslzs4t09ftaDxxhuDX8E5RJ jzLU4s0couwQWv6aKbBb4lleoCkkPSeUa4HtkfD80xjHBzvLTBCIxwob6N7EM7BZ9GxL 7VXFJkCXQ/PInyOVCUEbWg9KmjP9jBOSfy2FmlK7pkXaF3sZExf+K9uFpR3sWZooJfYQ MAJv7wczrkf5Akd0vkkNWjZMst4p9DEpqCCOwVGfHh5rKg0iMc4wmERvRQZgHbELWzX7 Ev2XPfiEg543lzM6cxtmqoQw7vKKhhSuGec7f4/kHEHiremM/0ruAAK02GR7djmPX7GR qA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6r59ccuc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:20 +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 30KClJ4r030854 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jan 2023 12:47:19 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; Fri, 20 Jan 2023 04:47:14 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 3/6] clk: qcom: lpasscc-sc7280: Skip qdsp6ss clock registration Date: Fri, 20 Jan 2023 18:16:43 +0530 Message-ID: <1674218806-7711-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> References: <1674218806-7711-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 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-ORIG-GUID: OfKaqCMV2l1p2lO9TlryE9jhZn_jTG96 X-Proofpoint-GUID: OfKaqCMV2l1p2lO9TlryE9jhZn_jTG96 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-20_08,2023-01-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301200120 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545790206237935?= X-GMAIL-MSGID: =?utf-8?q?1755545790206237935?= 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;