Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp339163lqp; Thu, 21 Mar 2024 02:56:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmVY2F1Q2NrzjHTTbWh7zkGPh4m2lkkaRmt6kQGLOPu3bMACYb9TXD/ypIfqFmtTifgZbjZd1K1imVGaUd/U6SZEQUgz3GghgSlBeh8g== X-Google-Smtp-Source: AGHT+IEKdpJvYR5KIp5uE4N06a61iFv8Y8XOX9129NcvTzdUmQ2PY1ephZmmJLAeU14xSLuupnaT X-Received: by 2002:a17:902:a515:b0:1e0:37ab:d94a with SMTP id s21-20020a170902a51500b001e037abd94amr8061303plq.41.1711015018381; Thu, 21 Mar 2024 02:56:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711015018; cv=pass; d=google.com; s=arc-20160816; b=NAzMjL0CTTTJy48lSnGExj9fB++5DQsfmHPtfNAyXyri/ww17ueCykGbZOmaZ17JfT /K8G9GWbOlIz/Gdw52XHf2OqCRohPF1hXalX90z1TP8doederojfmVuQNJjHeuPrc9tF MZCuU6PfkMIquHS3VSIBYrADqa4RTYXEa1A9JjQAhp2Tpxxd1vgx/+i85zCYCv9nHfYy 0q08wm9XhJLeKEhQXiGfFNSGEPf9lj4NFH8wrNx1DhEYgIADoeNODqU9dW58W4bdMDHf koC6scbZ00hrJ8ROQue2m+T+AjPCfzHeXQynMfTQw/4SXXihx65XM6R4xRyZ+WELRw6j 30EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HZHFgDwoldRyoSYtch7A+4TF5Dl0TrYZYdY3wcOp7Uo=; fh=rLJcr9TyC/78xPwUBs4t9k4ZLCviku8x7HwGP1w9Rhw=; b=Al/FCH1EE/ZKqHN8vWkTGTWhvZzlN5l/hpcgCFtH9Z/obKaDTXHZm0PrSobJhs/vma ZMzy6kwyqzPUEKC2C8LWis4TRHqIgDM0sULlcVnwV66vX9ER2F9L+np/C9U7prJhTR3i Bpd7wJbskDr/BHvGEKtgcdXUIAXuD2ND1PU9EsCKsaIeySGMhstf7BLtj81wA8AOOJYE j3Dwre2xbWMfNYGQmwq6x3jWGG5n1qicxgEhCSsv0YdmeXg1l5aW++aS6yc/hvhE/Sdb pBgstfazseCuOzEjHIqoZv/q8R0Ko4q6okKK0qqxfUV9Kg2ObYcyxat4I7uAVcfU6SiX PFBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Jl4Iulz6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-109872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n12-20020a170902d2cc00b001dedfba7897si9695860plc.97.2024.03.21.02.56.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 02:56:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Jl4Iulz6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-109872-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B178B22507 for ; Thu, 21 Mar 2024 09:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 536A05645E; Thu, 21 Mar 2024 09:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Jl4Iulz6" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E63454BF7; Thu, 21 Mar 2024 09:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711014978; cv=none; b=cd7DhBuTFXAmXPrXvxS61c+hsqJlk5jpaFlGjcbvodfzyUZ53ZB8T9VaiydIQyvfEEojs7EPe5QAtEOBVG9yf/OWWqYqDg26Vj7Z8WqcM7g9XSaymJ9+849I4sWndmFG5l3Nkoa4sqfuHXXrd9ss686F/XxEZIFt7xLjraAvu7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711014978; c=relaxed/simple; bh=z4bJqEtjpB9p3LfYAUeEPJKZF2/fyX+8gXt0JX5QHf8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qWqjWhaYzFVhtqgFCUUe5DswQkbfo1yq7fnJ52m4uQiLL0vNDw4s5Iybk7QPms7lL8f6D5WmOA4gYjKSK4o/quwfQo+OByMUStP7qa+UIduHvxeRM0Lh8nNSxgZ3pXK8+x4cEJ6UkmnQJYGK31q/laR98v15LfOQfkdaJ04rd2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Jl4Iulz6; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42L6Ro2A015321; Thu, 21 Mar 2024 09:56:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=HZHFgDwoldRyoSYtch7A+ 4TF5Dl0TrYZYdY3wcOp7Uo=; b=Jl4Iulz6v3+q8FOaRD2QpH2SvR20rDibLOyzH Bt6nC7mwfDd6PAKqzuwGiICHt8I5pXGRQRoV/UtOK/WOufLyr2eWwcPnu7tMYmdw HR2zDoyReziDMT2zQTnWC0TdoWL1frqjwwzJmxKVUtM2XCt3I31R8x+ftdxhbt2V R2nA7My25/XHJtq77MhtpgLtyQ7EpF5o7U4iUQLNB1TwekMDJBxZf6NaaLvP+I9N eOgTyCwo17qANf5T4mCsLofZ7X4tf11sdMCrAfEFA5FEjan2nlTWDr0LwP581aME 7Yu/jY1LAslih4psfrAXtN9T+ZL9LjC+ddfcipb7Te7eDCvxw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x0fmwgdrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 09:56:12 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42L9uAWl011238 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Mar 2024 09:56:10 GMT Received: from hu-varada-blr.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 21 Mar 2024 02:56:05 -0700 Date: Thu, 21 Mar 2024 15:26:01 +0530 From: Varadarajan Narayanan To: Krzysztof Kozlowski CC: , , , , , , , , , , , , Subject: Re: [PATCH 2/2] clk: qcom: add IPQ9574 interconnect clocks support Message-ID: References: <20240321043149.2739204-1-quic_varada@quicinc.com> <20240321043149.2739204-3-quic_varada@quicinc.com> <4079ddcf-425d-4194-93b8-ee113864541e@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4079ddcf-425d-4194-93b8-ee113864541e@linaro.org> X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: qY1bNhBsnuPMxIGmJnK4l7gsQ10KCnqw X-Proofpoint-ORIG-GUID: qY1bNhBsnuPMxIGmJnK4l7gsQ10KCnqw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-21_06,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=755 clxscore=1015 suspectscore=0 mlxscore=0 spamscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403210068 On Thu, Mar 21, 2024 at 08:25:15AM +0100, Krzysztof Kozlowski wrote: > On 21/03/2024 05:31, Varadarajan Narayanan wrote: > > Unlike MSM platforms that manage NoC related clocks and scaling > > from RPM, IPQ SoCs dont involve RPM in managing NoC related > > clocks and there is no NoC scaling. > > If these are clocks, expose them as clocks, not as interconnects. Earlier IPQ9574 PCIe patches were NAK-ed when these were exposed as clocks. Please refer to the following discussions https://lore.kernel.org/linux-arm-msm/CAA8EJpq0uawrOBHA8XHygEpGYF--HyxJWxKG44iiFdAZZz7O2w@mail.gmail.com/ https://lore.kernel.org/linux-arm-msm/CAA8EJppabK8j9T40waMv=t-1aksXfqJibWuS41GhruzLhpatrg@mail.gmail.com/ Dmitry had said I'd kindly suggest implementing the NoC attachment properly. In the end, other Qualcomm platforms use ICC drivers, so by following this pattern we will have more common code paths. Hence posted these patches to get feedback. > > However, there is a requirement to enable some NoC interface > > clocks for accessing the peripheral controllers present on > > these NoCs. > > > > Hence adding a minimalistic interconnect driver that can enable > > the relevant clocks. This is similar to msm8996-cbf's usage of > > icc-clk framework. > > > > Signed-off-by: Varadarajan Narayanan > > --- > > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 + > > DTS is always, ALWAYS, separate. Ok. > > > drivers/clk/qcom/gcc-ipq9574.c | 75 ++++++++++++++++++++++++++- > > 2 files changed, 76 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > index 7f2e5cbf3bbb..efffbd085715 100644 > > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > > @@ -11,6 +11,7 @@ > > #include > > #include > > #include > > +#include > > Keep the order, Ok. Thanks Varada