Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2926391lqp; Mon, 25 Mar 2024 13:18:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPQvXpY3VL/lCX4Qq7sX+QlBHnlNxV0GZ9buebt9qnE+G6cX0mYJEx+Yj8Q7IuB5GtW4ClJSUgeB/8dqNMR/VjzRwUR/oe8fUVhCQhVw== X-Google-Smtp-Source: AGHT+IETEq3pBynEIqtS5ySuhHO8be89RzvvLT7DAdpL+GFvL8xZJo1yPR7nVMIm+jxR7H9F5WMB X-Received: by 2002:a05:6a20:24a6:b0:1a3:a823:133c with SMTP id m38-20020a056a2024a600b001a3a823133cmr6084502pzd.8.1711397928475; Mon, 25 Mar 2024 13:18:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711397928; cv=pass; d=google.com; s=arc-20160816; b=isL2weIM0bxHprTOg9rvxzCHktEoy0WcPMDMcEy1ksN8LDRBhcTJz61mHWLyY/UGSW RvU+odNVvYyYeDduBLmav0QPEdNDDdaU4fCD8KkIZawSOaPh4wzfwOGMgA/6kL+uwvNN RSA2Hycg+Nsg9qzYlvvy/g5h1D2SMgh9yusRpAo7veFVSbCuOr5VkAntiH2XAw4GM3Tk 6oJ5IxoXna+YetKEjHovSwwNKoAP84uaUkK+VezwHJzKnbyQW59NKRbrogCAde0Q1aEy eLtRiryousNQXFsEW/l5pstkX6OirLqY8zPqZxhFJWEgNOkl25mDHf5VVxg6TSYLypb4 iOHw== 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=c3k7pufci4QzOCp0QPRDAw2QzH6RRL6drS1FDsSSQsw=; fh=1/UdfYsHhdy0FXMRfDSao3Rbyu78L5hB0YqZyiF1Psw=; b=sQs7FX/odI+e7z8MdRWN2s7GLIjwwD+zMLzVsQJAcCzgqresTHrEhaa7bXz0o+05nq y+xkK5/yxAj5fuuCwHbhusRxWKOIZz/90PGJIx8rGl7hQoAa6m3SULzfHcEOyQfGlOg+ bXpaPH94DdLv0rdEU8oIwOHJczHNOw9uutgxRmlJ06T+hoc5+tg6e/pVFECqmzOo+WeV Y44S/5oIZK2oTVvonG3vpiZtyS8GQiWqlHsXIMeZ36evigJbR0zWI3jLCtwqP3ynEqOM f4KoTSW69PAmy5eganBghj5ozQ5BLQyYCE3MndfJguVt8V4mrCV4ftcKzFXSQtGwwBEx Hpxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=phdv4FLq; 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-116826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116826-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w16-20020aa79a10000000b006e79a5b1199si5770709pfj.35.2024.03.25.13.18.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 13:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=phdv4FLq; 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-116826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116826-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 391E1B277F6 for ; Mon, 25 Mar 2024 14:24:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DC8C1A0AFB; Mon, 25 Mar 2024 10:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="phdv4FLq" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 3902F13A885; Mon, 25 Mar 2024 10:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711362142; cv=none; b=kYnuSVn93o6tr6vFToWZwHuIAeYnjYnadMeBKFUl6jsimATKU0KZeVGOvpCsICESxN8fdlQdW+dS+5jGPtY7KcFwUzft7LRkLE4pQBmcS27I21moAEP2ybUKOhgZBRhTds2PMuYVjIiXC4J2caFuqTzo8EAHlOHTXYJrAF+LASg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711362142; c=relaxed/simple; bh=FiYHzBCEpkdUNfkrGDS+ZiDWs6INjW7NIH8sfTk9h5U=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UYRVb6rwR/gX8eE0sM9MCrOEoDATSjYo0V/wpSB22WMDQlmJRNwpTuvh9AI696pNJnBHzLOdxeS/kC+a5iWjDhctRyOfBffSRa+pU8holQfOSsqUexovdCOB+zgftAu3cOVdyGM8LZhCW+RdgqJ2pR77b0lJ020X1c7bRzBzqVs= 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=phdv4FLq; arc=none smtp.client-ip=205.220.168.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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42P8joiF010474; Mon, 25 Mar 2024 10:22:17 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=c3k7pufci4QzOCp0QPRDA w2QzH6RRL6drS1FDsSSQsw=; b=phdv4FLqqDWkO9uvwh3noV/M1BwdUlTK1o7uM b89GPkouqKfDQvngWx3idg0dL/3z8TD7ZcHY4Xag/DyLn4cwjw2zp/9ur9KszL2G ldiKklNRwyC2FvpZHRrizfZ1y+YX9gerA3f/65tJmLkiEFEDdicZUGcxeVHCeCrE 0g7Vf/OYdrysvdc65TjI+aU+PQOS0+uEwD+idVnQ2FtyuzuZhtkaKO5XSAucEmwD hykI/9DvjmgGF9y+c3gH4hAVkWhsaKb0KSTv8zU/eb+ZFBsuTgqbtJUyFKsYJEwH Uy+cS3ReNwLK0+ZO+k8CpMwW2hVNFVkdJNTauNmfew8K6Bt/g== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x2yrurwfm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 10:22:17 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42PAMGju029032 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 10:22:16 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; Mon, 25 Mar 2024 03:22:12 -0700 Date: Mon, 25 Mar 2024 15:52:08 +0530 From: Varadarajan Narayanan To: Konrad Dybcio 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> <4b37a6e5-f917-4ead-9678-554a0d8f4660@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: <4b37a6e5-f917-4ead-9678-554a0d8f4660@linaro.org> X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: eaAkKU8RKyb8W1jl_JQfG_Cvufv7b4DL X-Proofpoint-GUID: eaAkKU8RKyb8W1jl_JQfG_Cvufv7b4DL 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-25_08,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403250057 On Sat, Mar 23, 2024 at 01:29:00AM +0100, Konrad Dybcio 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. > > > > 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 > > --- > > [...] > > > @@ -9,9 +9,16 @@ > > #include > > #include > > #include > > +#if IS_ENABLED(CONFIG_INTERCONNECT) > > This is bad practice, especially given the reasoning for your changes. > > It's best if you add a dependency on interconnect to this driver, > otherwise things will go into uncountable EPROBE_DEFERs if there are > nodes consuming icc handles, but the supplier never registers. > > [...] > > > > > static int gcc_ipq9574_probe(struct platform_device *pdev) > > ..and that approach could save the probe func from the absolute mess it > has become with this patch > > Konrad Thanks for the feedback. Have addressed these and other reviewers comments and posted v2. Please take a look. -Varada