Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF215C38142 for ; Wed, 1 Feb 2023 05:47:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbjBAFrd (ORCPT ); Wed, 1 Feb 2023 00:47:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjBAFr0 (ORCPT ); Wed, 1 Feb 2023 00:47:26 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6887F5AB60; Tue, 31 Jan 2023 21:47:23 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3114gXdq019410; Wed, 1 Feb 2023 05:47:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=RqWkmDU3C8be54Xi45ldZbryYCKcXPub6Np6qvww54E=; b=FaiwhauruucybD5x3Mms87M3+ORSg1utN9sTbgb3GjgHZCoAGo4x2m0waC9zPiLCaieT CtY5q4t5ju05Cx6LViyilYFRc6QH0P2URkxXEH2AZ4W3L1EhYmk3tPLzUhF4g2J/ibW1 z+QEsAC1wDKDJq/nPXxOCe2qW52gbibGAUgHnYsyvJv6A0VwnQyVuZYikXRsfce1kiQ+ ZR/JmEdSRhUOXNXuIeujO3y7LIHSIKNWb9PhQ8eupg/855zH/VNvDCCet5bNxRlzs9du I9oLR8PICzLc6kNyuIB8jqEEyiaVzFeutaxtJqq2sMV8vdFwRR0IQZAe2KDr6AzYu5mD Hg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nfg9t872v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Feb 2023 05:47:07 +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 3115l5BU021018 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Feb 2023 05:47:05 GMT Received: from [10.50.28.88] (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; Tue, 31 Jan 2023 21:46:59 -0800 Message-ID: Date: Wed, 1 Feb 2023 11:16:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH V2 5/9] clk: qcom: add Global Clock controller (GCC) driver for IPQ5332 SoC Content-Language: en-US From: Kathiravan T To: Stephen Boyd , , , , , , , , , , , , , , , , , , , , , , References: <20230130114702.20606-1-quic_kathirav@quicinc.com> <20230130114702.20606-6-quic_kathirav@quicinc.com> <84f68577f5629e6ef6d6b14357a79f84.sboyd@kernel.org> 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: ug6EesGLA7bP_sPAu9AkkMxVVKPRc_AG X-Proofpoint-GUID: ug6EesGLA7bP_sPAu9AkkMxVVKPRc_AG 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-02-01_02,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302010048 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/2023 11:15 AM, Kathiravan T wrote: > > On 2/1/2023 2:39 AM, Stephen Boyd wrote: >> Quoting Kathiravan Thirumoorthy (2023-01-30 03:46:58) >>> diff --git a/drivers/clk/qcom/gcc-ipq5332.c >>> b/drivers/clk/qcom/gcc-ipq5332.c >>> new file mode 100644 >>> index 000000000000..a8ce618bb81b >>> --- /dev/null >>> +++ b/drivers/clk/qcom/gcc-ipq5332.c >>> @@ -0,0 +1,3954 @@ >> [...] >>> + >>> +static const struct clk_parent_data gcc_parent_data_xo = { .index = >>> DT_XO }; >>> + >>> +static struct clk_alpha_pll gpll0_main = { >> [...] >>> +}; >>> + >>> +static const struct parent_map gcc_parent_map_3[] = { >>> +       { P_XO, 0 }, >>> +}; >>> + >>> +static const struct clk_parent_data gcc_parent_data_3[] = { >> Isn't this the same as gcc_parent_data_xo? Sorry missed in previous reply. Yeah correct. Will remove it and also check if any further duplicate entries. >> >>> +       { .index = DT_XO }, >>> +}; >>> + >>> +static const struct parent_map gcc_parent_map_4[] = { >>> +       { P_XO, 0 }, >>> +       { P_GPLL0_OUT_MAIN, 1 }, >>> +       { P_GCC_GPLL0_OUT_MAIN_DIV_CLK_SRC, 4 }, >>> +       { P_SLEEP_CLK, 6 }, >>> +}; >>> + >>> +static const struct clk_parent_data gcc_parent_data_4[] = { >>> +       { .index = DT_XO }, >>> +       { .hw = &gpll0.clkr.hw }, >>> +       { .hw = &gpll0_div2.hw }, >> [..] >>> + >>> +static int gcc_ipq5332_probe(struct platform_device *pdev) >>> +{ >>> +       struct regmap *regmap; >>> + >>> +       regmap = qcom_cc_map(pdev, &gcc_ipq5332_desc); >>> +       if (IS_ERR(regmap)) >>> +               return PTR_ERR(regmap); >>> + >>> +       return qcom_cc_really_probe(pdev, &gcc_ipq5332_desc, regmap); >> If you don't need to write anything in probe you can simply use >> qcom_cc_probe(). > > > Thanks Stephen, will move to qcom_cc_probe in V3. > >