From patchwork Thu Sep 14 06:59:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp189431vqi; Thu, 14 Sep 2023 01:12:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1d1Bew0yP2xAZYwN21EJl+1hX/KKyMFWIaH/fcNiDKiHPG+Z5KhBWsG3dhySsMwWoJHCa X-Received: by 2002:a05:6358:5920:b0:142:d032:1bc6 with SMTP id g32-20020a056358592000b00142d0321bc6mr5537227rwf.0.1694679152749; Thu, 14 Sep 2023 01:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694679152; cv=none; d=google.com; s=arc-20160816; b=f58MWdCVRnDp6ptHWZBCOJ5BnZ15oHM+A9y7Mha7NJWQYme40jasLUZLLfzBufX7Qg ZBhF+MkLGsX6E/ytuja2Xr/txYZAfPAwh+Ji/cDyME8X2NRejqOpyqnl54qkytqqphl+ 17Dwst0GXMsamJQ5XuhNqf+WrfGmzYPintECYok/UEFGSXXYjZoPAZHLBcS0MwuKnb1y heGA5/lcbgugxc0KBKoycwSknLd2p0Pb7hYtAVPGDoOWhBKgcUs0BzwezsfCNP+RZ4vS 22rBCPAl/Sm9yQXbvSxnLK5coF+lZp9N4nsY0JQP/pHtogag8bj04Cdck9XxeF1w0t8A VWDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CFJMCiR1Bo0Zs0u0v0vhwfmpU2tjmHZnbZry9lOc/ak=; fh=El3CbEE15ZsesgBWsikxymCJesZUZu1vPQj2Zepn3Uw=; b=n9+GbA7pr5K4XgmTr0b8ZdpUQOEdx357UuaPmk4EBtEbOiN0fPQU2JAkmg5N1AOd0A fhy72G74CCdSO8i23Ow5xgo+dGu9rqeS04wJ1yEDNn40gkYUoPMDJFg9KQ8lZc/QwMNE P2knsn+VEMKjLPtyVxs+GS1DdalM1GnXf6dlQNJwlJY9YsFxdq5fqlmGD9P5IbtpY+xS CkgtbTu9e+H9IqXjTWeR0EqBsbAbjvaUH/X+8WAJKlo5fE08ABX8kI3VxMisSzm5gCXm ZwgPgSYvzmVnMOxNVKUR4pQFy5q6GRe0inW/KwmQwpmjFC3VOWjdNNzZU9nNmUdpMdFX hSXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=now9rawA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y21-20020a634b15000000b00565f20a03f3si986009pga.774.2023.09.14.01.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:12:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=now9rawA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5A5A9826EB4B; Thu, 14 Sep 2023 00:00:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232593AbjINHAf (ORCPT + 35 others); Thu, 14 Sep 2023 03:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjINHAe (ORCPT ); Thu, 14 Sep 2023 03:00:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48678CD8; Thu, 14 Sep 2023 00:00:30 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E6SS2M006211; Thu, 14 Sep 2023 07:00:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=CFJMCiR1Bo0Zs0u0v0vhwfmpU2tjmHZnbZry9lOc/ak=; b=now9rawAAN+sLZgAW9v8PvRkCgPje0hdNiBlWHwkaC1PVwHm1gJmaXrNpF+ZwF/FX9HP mWVCCfy4ppIYXWjw6Bqk3O+1rvv/lLPZUZ0FyBIXhPBGQ/GZul/LqSqd0HXATM4gUt4r BMWfc9mizPUfGla62bonGC8YyG6IFwE5Wyv9CRNtEppe8cGcwNgLDjDBTc6L5fFR9tsT zs6ayPPMRNPTPvK83fHI37pQ2jjzpb03aXTzwadofThrbFJ3zqKAJMcOmlwQNroFsPs/ G2SNAR/q9opxRharGWffIQFbrMW5q5D6hP9rIoseFC2/5R4nnknQwLHBsflpUvk+k4AB SQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3r15rnb4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:24 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70MNE016955 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:22 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:17 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:51 +0530 Subject: [PATCH v2 01/11] clk: qcom: ipq8074: drop the CLK_SET_RATE_PARENT flag from PLL clocks MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-1-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" , X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=2123; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=et3sbNNIo4FjZBdgJ3tqzZdx4KTgZ9SvcoeqRTD+t+M=; b=a4zoKlRUweg4vBAcCp/aBCXpZJFNyRz1BS3djGaLExd3N4Np87yZLEWPHI5WqLNZyciyajzV5 rkDUDkLQd1tAl3UiTGxDm+AntDiN9wpTOba7X+OoBnqHL047CzUXFle X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: 1bF7F7q9bYES3-dm8AHcVlagZ83aWq3A X-Proofpoint-ORIG-GUID: 1bF7F7q9bYES3-dm8AHcVlagZ83aWq3A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 priorityscore=1501 mlxlogscore=920 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:00:51 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776999887289628539 X-GMAIL-MSGID: 1776999887289628539 GPLL, NSS crypto PLL clock rates are fixed and shouldn't be scaled based on the request from dependent clocks. Doing so will result in the unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the PLL clocks. Cc: stable@vger.kernel.org Fixes: b8e7e519625f ("clk: qcom: ipq8074: add remaining PLL’s") Signed-off-by: Kathiravan Thirumoorthy --- Changes in V2: - Include the stable mailing list - Keep the CLK_SET_RATE_PARENT in UBI32 PLL, looks like these PLL rates can be changed. So don't drop the flag. --- drivers/clk/qcom/gcc-ipq8074.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq8074.c b/drivers/clk/qcom/gcc-ipq8074.c index 63ac2ced76bb..b7faf12a511a 100644 --- a/drivers/clk/qcom/gcc-ipq8074.c +++ b/drivers/clk/qcom/gcc-ipq8074.c @@ -75,7 +75,6 @@ static struct clk_fixed_factor gpll0_out_main_div2 = { &gpll0_main.clkr.hw }, .num_parents = 1, .ops = &clk_fixed_factor_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -121,7 +120,6 @@ static struct clk_alpha_pll_postdiv gpll2 = { &gpll2_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -154,7 +152,6 @@ static struct clk_alpha_pll_postdiv gpll4 = { &gpll4_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -188,7 +185,6 @@ static struct clk_alpha_pll_postdiv gpll6 = { &gpll6_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -201,7 +197,6 @@ static struct clk_fixed_factor gpll6_out_main_div2 = { &gpll6_main.clkr.hw }, .num_parents = 1, .ops = &clk_fixed_factor_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -266,7 +261,6 @@ static struct clk_alpha_pll_postdiv nss_crypto_pll = { &nss_crypto_pll_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; From patchwork Thu Sep 14 06:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp318466vqi; Thu, 14 Sep 2023 05:42:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPAkaytskxRbD59CsdzdUvUJJ+Q4vNMIEl8z9DUnaEwmKd1kjGqAYwYGd+usHE4BTOueJ7 X-Received: by 2002:a05:6a21:9988:b0:134:d4d3:f0a5 with SMTP id ve8-20020a056a21998800b00134d4d3f0a5mr5420379pzb.2.1694695355884; Thu, 14 Sep 2023 05:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694695355; cv=none; d=google.com; s=arc-20160816; b=LowGITtKTi+7v+VCaskI2cozxuzcI8iS8yfuHNzzgHK/qRVj7zQNKOKx0lwk62nNrC hzuHpLpQXxvmWJqG8vkJmnp0LmqD8f+cUB+hE2oyoOv19P5aAHkC9ylvl8ir/ZAC8In6 4/eDkdAtYU10rEDZsDu3C+xX7CeNl1pZRrV1zRlVrvca3APACUAy05cs0hwjGyawtAW0 KtTfQKVVXFdZO/9DURH1nUXdPthFFWaXlMUSChwBF/d3nh9m4qo88LcULXrsyRZS2OBV 4q9wWSC57sE56FxZbsB3FBcnxi2n4SVCD7VHgMXr7IsdkzRWK0EWRTttxI6wmfV4sNaK ATAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=IYUUi4irMTzpChiOLnaWeP34/o4DxcOkgDEagseKg+4=; fh=El3CbEE15ZsesgBWsikxymCJesZUZu1vPQj2Zepn3Uw=; b=yF7s/I1/fV8ANBPAIPHssY1ox9G+OuXaY6vt5DplDAshYTrnOjxdWXKj7vku4O8VUN L4vhfcYFYJVDvaOKYyGqVHvxTqK+6bkt5xW3iWEWLOAhlQiEVSa7II/KFefwd1CPzMYP 3nQd8J+BiyOR5B/A2hbOeSXRdscjnkOG9R4E8tysiI3vpXxLa9DYY0u9bBVWNhzxn+Dz xUSjp0bqBGndpV6Qr5mBZnB9HDLP3hnPAdSPmjrCg+OQqKjiyP2T9kC+lwo3RzwWl71t ZtKVACj9SuXIFwBIJd1ozp1sG/eO6NB2onw2AdAJg56yos4cBHsjksy4M4oxJ6LLailF +z+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FLuw2MAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t4-20020a17090abc4400b00273f61d8773si1579356pjv.160.2023.09.14.05.42.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FLuw2MAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1EEA38271420; Thu, 14 Sep 2023 00:00:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233544AbjINHAu (ORCPT + 35 others); Thu, 14 Sep 2023 03:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjINHAq (ORCPT ); Thu, 14 Sep 2023 03:00:46 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 477DDE59; Thu, 14 Sep 2023 00:00:42 -0700 (PDT) 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 38E6kkY5020141; Thu, 14 Sep 2023 07:00:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=IYUUi4irMTzpChiOLnaWeP34/o4DxcOkgDEagseKg+4=; b=FLuw2MAOXTK1FRbScss1U7rmLd9fyFo1L/URfk8yIdkeej8wcAnARCMo0XJ3OiijW3bV yYHfmejIi5UqcRqFR28bqAHG19/BQEdXdZTLaQxmr+lj0cuA/wiW91fvRCObZQ/omWba 2uLxq8Jn8fCK0KHSUPnEXndtlBA25+m9j4yRHec8hYiesIXxdvBlpUBRTQ2QdRty8QOi 9JbfpZvYAoqoFq+jsr/HPfGxT3E+R5X0l6+fUJTDbsALZVDGHdaHurRe5k783GAt8txy uWuPRkzHoKvwxXSa0JIEbEBKAH0MJGK18kObbAxfBcqPCkc9R1r5XJcNr5AxWCNZTuHa QA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3ds427fs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:29 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70S2h024534 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:28 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:22 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:52 +0530 Subject: [PATCH v2 02/11] clk: qcom: ipq6018: drop the CLK_SET_RATE_PARENT flag from PLL clocks MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-2-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" , X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=2133; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=rsIYjMjr7l4hRP/TaRaz8xhUIe4rolVSZ1qvNyYYjEQ=; b=t/1AQcU7XZaufByt68IBdPr9TvzKEdidvZ2yTtqo4bdwmmYBU+2MRE81GEWdZGnCDwkgccbl/ gHFtBwGUn/ZAjQeWm09BvG2KAxEtGtr0F5XcGpfAXx0g2o6H5j38j5n X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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: D-JTW6z4TJi9HkgY__X_DeTFlIsGMnVy X-Proofpoint-GUID: D-JTW6z4TJi9HkgY__X_DeTFlIsGMnVy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=889 spamscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 adultscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:00:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777016877224017608 X-GMAIL-MSGID: 1777016877224017608 GPLL, NSS crypto PLL clock rates are fixed and shouldn't be scaled based on the request from dependent clocks. Doing so will result in the unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the PLL clocks. Cc: stable@vger.kernel.org Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller support") Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Include the stable mailing list - Keep the CLK_SET_RATE_PARENT in UBI32 PLL, looks like these PLL rates can be changed. So don't drop the flag. --- drivers/clk/qcom/gcc-ipq6018.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c index 6120fbbc5de0..f9494fa1b871 100644 --- a/drivers/clk/qcom/gcc-ipq6018.c +++ b/drivers/clk/qcom/gcc-ipq6018.c @@ -72,7 +72,6 @@ static struct clk_fixed_factor gpll0_out_main_div2 = { &gpll0_main.clkr.hw }, .num_parents = 1, .ops = &clk_fixed_factor_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -86,7 +85,6 @@ static struct clk_alpha_pll_postdiv gpll0 = { &gpll0_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -161,7 +159,6 @@ static struct clk_alpha_pll_postdiv gpll6 = { &gpll6_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -192,7 +189,6 @@ static struct clk_alpha_pll_postdiv gpll4 = { &gpll4_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -243,7 +239,6 @@ static struct clk_alpha_pll_postdiv gpll2 = { &gpll2_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -274,7 +269,6 @@ static struct clk_alpha_pll_postdiv nss_crypto_pll = { &nss_crypto_pll_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; From patchwork Thu Sep 14 06:59:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp256858vqi; Thu, 14 Sep 2023 03:49:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8EjHRi2kBUOP1WLBBS69UPEBm9+K4TB+x8Sqcp+WWCR3GFTpd19wtO4fxc7sTSwGJAV5L X-Received: by 2002:a05:6102:364d:b0:44e:9d4f:1ffb with SMTP id s13-20020a056102364d00b0044e9d4f1ffbmr5291715vsu.11.1694688584844; Thu, 14 Sep 2023 03:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694688584; cv=none; d=google.com; s=arc-20160816; b=Vv+t93t7Ehn3IbYtdoM8xCLC1jQwqyZn+G++e7tFG9f9SXVqdgSSOUnD4NOrGLQWVA Z14vsCWCblVHSMcpB/zcmC9Iob9lE+wVT4lWS1IMJQLrPZ6DS9QsnhwTMO7TNgKdWP+H LLQ5H/Nq9AMc8OwE0+5FCoC7b4+5vXhVGm6uytJsJLMhybpNIgy9+yerODdZ4kn5BOHF dhf68bY2mmCYpZb3rPLPITlrcU9I8ntq8FZU69aRjem7UxEm9lJbxvvSzpEKDINpasX4 7M/nhMUUzxOEJhMlMTyRXj4EwV9aXUZ+KH0pJ3FyiAJbvbCq6y4ll1Wow69O6M7egneA r7dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DVqZBajrPL02OUxFLIj8QfS8aW+Ubml+pHq/aY/ZHk0=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=EOZIhv+OsnpDLWNJc282KzbdL1VxnuyzBE0JU3YEpvNblySqJL+s+nIzS9Psi16GMg 3P2jqLhrX9NdmrnLCR+ykZnlZHrmnW163rGoQch/YUna4eS2bLLSI3wo06K8z4rT+Slh R8VZXMDOoWEJFGjZh9G2kYazp79BUdjHC9ZA2xBsZyykxCEO1gPiLVW+cYhjOUE/BHdZ MbEywEI7GxIKFb1JyFu7SvSrNlTCwpd3Kor5FBbUE3t6+R/RDTPxiKLHfAXw5R+cjY4y 05Q3O2P+os2p/M3KJ/32Yra4eWxtDsDMbAjq+FIGc1pblnngMykWSwMG5fRQZ2K05EqG iTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VFhQYyRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c8-20020a633508000000b00573f9a427d2si1254561pga.53.2023.09.14.03.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VFhQYyRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 08DAE80C8DD4; Thu, 14 Sep 2023 00:01:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235725AbjINHBJ (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235782AbjINHBE (ORCPT ); Thu, 14 Sep 2023 03:01:04 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0380E69; Thu, 14 Sep 2023 00:00:59 -0700 (PDT) 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 38E5XDUC008793; Thu, 14 Sep 2023 07:00:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=DVqZBajrPL02OUxFLIj8QfS8aW+Ubml+pHq/aY/ZHk0=; b=VFhQYyRw0PSLBGcScJ6j0UYLLO6xN/tRhBNlk7V8PI9jFS39ncUWRSNDNM3VlXYgOKeu 4Hirn6qj8k/yFY2jDJkjnsed5iAsFVsIIzfcaRTA5nKMCJmLxzl4yZMX0U8T3MYuqaJi fptoOrdqWSGEyIKqPyjWa0dqZS5qxaAXLSQlCz5/jV0fNcjGRkgmv0Ghk+P7gNbsgAzu RgfObWx8F9tpNMMX2RacFFTFku0aKd28EQzOq6WOeNc9Am+8Tln8szeXKwZvzphPCoIb YKB15vx/udkbuUr6V7DN8PjPSRC2opHkY7dFAXK8j262E4TTp0q1avBaIQDI4Zr2Zghp yw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3v4g85f3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:55 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70X4a017222 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:33 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:28 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:53 +0530 Subject: [PATCH v2 03/11] clk: qcom: ipq5018: drop the CLK_SET_RATE_PARENT flag from GPLL clocks MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-3-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1251; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=oAtqLps6zVPlsP7aIFNmxeNbbQxHgvUK1BoZIkCFMqM=; b=c+BSyRBRq1wPXhodlCeM4aKLXyYzdf2y1EBCHSsO2jKDq8SDsT8L+D8mv08EQM7rtaXJyqCiw ov0ZGtLHNaXDmGMuyBng8RvocTwRorYvlPNrroD9KDfZnHcVglQGr5/ X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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: t4amiaSimn8DJZ2gTZLRreG8UI9ZCxul X-Proofpoint-GUID: t4amiaSimn8DJZ2gTZLRreG8UI9ZCxul X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=762 priorityscore=1501 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 impostorscore=0 clxscore=1015 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:28 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777009777801779376 X-GMAIL-MSGID: 1777009777801779376 GPLL clock rates are fixed and shouldn't be scaled based on the request from dependent clocks. Doing so will result in the unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the GPLL clocks. Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") Signed-off-by: Kathiravan Thirumoorthy ---- Changes in V2: - New patch Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-ipq5018.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq5018.c b/drivers/clk/qcom/gcc-ipq5018.c index 19dc2b71cacf..2a3c0659b700 100644 --- a/drivers/clk/qcom/gcc-ipq5018.c +++ b/drivers/clk/qcom/gcc-ipq5018.c @@ -128,7 +128,6 @@ static struct clk_alpha_pll_postdiv gpll0 = { }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -143,7 +142,6 @@ static struct clk_alpha_pll_postdiv gpll2 = { }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -158,7 +156,6 @@ static struct clk_alpha_pll_postdiv gpll4 = { }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; From patchwork Thu Sep 14 06:59:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp319094vqi; Thu, 14 Sep 2023 05:43:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLpPNnFaJS+NsScw+AjbWAcSJZyMQCQRMO44C9hsX54t2dtrd6A1Hjwwm3bfCBqqRMKHMY X-Received: by 2002:a05:6a20:8f11:b0:14e:2c56:7b02 with SMTP id b17-20020a056a208f1100b0014e2c567b02mr5429491pzk.0.1694695430907; Thu, 14 Sep 2023 05:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694695430; cv=none; d=google.com; s=arc-20160816; b=UwdITn8mnH6zmPMv7lD1XHs3lvUhijoVW8g0ETHfGI0nQ4AwiojHZbCrN86uMTgYhM 2t/yJqXwf9KBLa+cPBNu0jhv21tucCVZ4VytQoqGS1y3QMxxjZShw3zA878GcehdANX1 WwSac2H8Z8cqQd3DFWBr0hk0BmHiLwI4PN5oD4EXnCnY7LxTy9f0+BnSjKn6POKamaYi rgNN2nY/4Cjh+J9Qu4I//6N5+yjhBrKa6a3pohEJiA5v6ww0Ja0Tc0RV/ZdD/FxFwj17 4cIRxvQj7qQBNMIpVdOqbwH167iIkMvPsPjVPRBh4e6kuYk+CMtHueRiXt2SnYraxem+ 72vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=y6/zxeXA4c631iq+xtpWYv7DUWz2uyw6degn7T5QEog=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=qgmQgSNfsnTxzZxq8xiOK9tE5H1hnAljWI04SzrHWwGd8Pxb7vC8ryOT0tH2JY4hzr +JqHFMVoCnlFN8lzzAqV5UqxusdsR5WmPT5j1FU7t4+ZP0zjur0ICANPME0H9+48n+Hs db47+lu+AzOTsRMojZnVNCjSQ/6f2LCJRrMcw8L6E7Upa3+H+zfFll5aguF2H1dSjJzY XrShafhkpfirbne69I1r6jDOX3TUPIltTKRA/7z/h3VD0jc0mZJon5BnNuUQocDQdzDd TWO6p7kRLKvBM/7b0kplHdExvaiFnMydxemLwFnJodOpMHCPlIltyaariupHX0mUICEo Jl8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kJrOd83m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l10-20020a17090aec0a00b00267ba1c43adsi1570015pjy.101.2023.09.14.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kJrOd83m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 612388085FAC; Thu, 14 Sep 2023 00:01:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbjINHAw (ORCPT + 35 others); Thu, 14 Sep 2023 03:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235337AbjINHAt (ORCPT ); Thu, 14 Sep 2023 03:00:49 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DE8BE58; Thu, 14 Sep 2023 00:00:44 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E70YLh021904; Thu, 14 Sep 2023 07:00:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=y6/zxeXA4c631iq+xtpWYv7DUWz2uyw6degn7T5QEog=; b=kJrOd83ma2wtWT3GG8Gh7gE0aXzOwIRh58AAwRIgPCuJ/rPaIYHf85eWk4ehAmrnqV9q Af6VQY3FRCwsQk+S+kq8Ao3QpC3vpYWv+mhkkfpq+mYJ1DB65A3nPgIYp9kLxzHtxmv0 IzF6cbMl1Uv99ZFkjKS17Uq/gEpP93B3CVWzr1un2iLlvlUM1FBYsrwUxdLZxZRrLjlz XvOWSFuE3TbmbRvIJiW8vPyUzWur/1mmZz4oaMc3t9tsDRK3NYOvtGMV5zpz3J4vUEle EQSO5Zaq6H/Wn6FO2I6UvkpWjf+vzuaOhZL2HKg3h19CSh/BuCnlOW3JDLBEQmGMYSgL yQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6b9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70ds4019675 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:39 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:33 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:54 +0530 Subject: [PATCH v2 04/11] clk: qcom: ipq9574: drop the CLK_SET_RATE_PARENT flag from GPLL clocks MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-4-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1520; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=6e7dI8EN15wlFS8923wD0L0oZyOi2kC43QP046NEGA4=; b=FBcN7Mm2wo0vh7j1S9/DjuUlDJQFeMSEFy7HIFzemmbnIPe0hccikCYK3Wn75cxyPLbBqzfVy tmGKJPjn7WcCAIXjIDpr56XrFFFfBAh+kt8BLWhxuRpIgGwBi0sfz3J X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: xMBZWW-0babscUNbuaKDL8mmNnJ-wVnI X-Proofpoint-ORIG-GUID: xMBZWW-0babscUNbuaKDL8mmNnJ-wVnI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=778 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777016956349508896 X-GMAIL-MSGID: 1777016956349508896 GPLL clock rates are fixed and shouldn't be scaled based on the request from dependent clocks. Doing so will result in the unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the GPLL clocks. Fixes: d75b82cff488 ("clk: qcom: Add Global Clock Controller driver for IPQ9574") Signed-off-by: Kathiravan Thirumoorthy ---- Changes in V2: - No changes Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/gcc-ipq9574.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq9574.c b/drivers/clk/qcom/gcc-ipq9574.c index 8f430367299e..e8190108e1ae 100644 --- a/drivers/clk/qcom/gcc-ipq9574.c +++ b/drivers/clk/qcom/gcc-ipq9574.c @@ -87,7 +87,6 @@ static struct clk_fixed_factor gpll0_out_main_div2 = { &gpll0_main.clkr.hw }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, .ops = &clk_fixed_factor_ops, }, }; @@ -102,7 +101,6 @@ static struct clk_alpha_pll_postdiv gpll0 = { &gpll0_main.clkr.hw }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, .ops = &clk_alpha_pll_postdiv_ro_ops, }, }; @@ -132,7 +130,6 @@ static struct clk_alpha_pll_postdiv gpll4 = { &gpll4_main.clkr.hw }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, .ops = &clk_alpha_pll_postdiv_ro_ops, }, }; @@ -162,7 +159,6 @@ static struct clk_alpha_pll_postdiv gpll2 = { &gpll2_main.clkr.hw }, .num_parents = 1, - .flags = CLK_SET_RATE_PARENT, .ops = &clk_alpha_pll_postdiv_ro_ops, }, }; From patchwork Thu Sep 14 06:59:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139430 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp187189vqi; Thu, 14 Sep 2023 01:07:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZvLmTAJI/JXGwA2pUPkVwD1jckUqcZqL3US3rhwuUac/xsFAJ9eBmATAx6xsaJEY7U51M X-Received: by 2002:a05:6a00:190e:b0:68a:59c6:c0a6 with SMTP id y14-20020a056a00190e00b0068a59c6c0a6mr5098978pfi.24.1694678848869; Thu, 14 Sep 2023 01:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694678848; cv=none; d=google.com; s=arc-20160816; b=UuGxGe4RbIBkDbLxzezSim6Mtt/MgXNW3aASUPHnmhkcEvs9GMw29szarLS7Djmo/I 900eCuLcF/uHA5NOLsHCuphZaPw9xWshhFx1SnYivO7D4IXtebE4LUWfygAWeuu4I0YX bllf7ffVsVmRV0St02fIDdGTvS9ttJ1rHmyTjktaa/zv9Lv63bKOn3SvRutfkJbmhlNF H1GbgM+59AfT83F3HNXkBC0AhvLruwRQL65xZ5P5ZNpvTcVgSbnTg/px7f0HAfUQ7DkB rQPBdb+XE2ydLSh1nt3vRewUAkRoWEV4uX5hG3o9PgeTyYkpIsFH4Ebpb58k2ZXikuFh YzCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=cNKqYCCiiQn5fciCOzCqzsk9+o2CUNOXSiSNkFULqq4=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=fx87i+IiUfvmlklIZIgIlKp1KZZo0sPfeA1gWF72aRAWaxW0djbMV4Hi68OMOGe2l8 WDUos9nJn7GIkORyDwiz10xbKU7UBGdRqDpgHr4ENaL6Mbyaz05MtGV1YD7KWNg3GByZ xuNM6w837JLRp64/M0PPq6EWCroXwAurrzxnsGGWvviPvaO3G0ur4NDdDdFj0yXOxmpp IVsRfr3RdSDfAhgMfsVrwBcwdm46xKNmk8GiBbK5yHYrhr2joHgM+outI/UY+biHWFUO c/JfY3SrOtESIavUUEHs7qh+cO1K/LzFhuuhuxhRWehTXNZ8Z33GWy+qQ0PJyUEF+9ui H9Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="f/+KpLZa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id fp7-20020a056a00608700b0069023e4bcb4si1082272pfb.114.2023.09.14.01.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="f/+KpLZa"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6EEA582F916A; Thu, 14 Sep 2023 00:01:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235866AbjINHBN (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235337AbjINHBC (ORCPT ); Thu, 14 Sep 2023 03:01:02 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD25BD; Thu, 14 Sep 2023 00:00:58 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E3ftLZ030421; Thu, 14 Sep 2023 07:00:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=cNKqYCCiiQn5fciCOzCqzsk9+o2CUNOXSiSNkFULqq4=; b=f/+KpLZaTtYr2e2t5vPyAiGiTtEucu1ab6tsD988dEJsPwPlJNlm9LqNztmSaWCntx2H LmgXPNxAeJo5YJPDhv4sSeY0UCcF4rTOaMK0xMn6SYVwk5lVMHjbp7y6iyZaKOTgz9UP EMMwVdyc54eKVFDtmJLAAW8voZgHRAmBUTWfgmQdHpUjVoQ5LmRJidOeNd2rxdNVPh9Y ZZbZjgwiAOCJfQdh0mu+qf0tWF9R+W9kqZYept88YAFfhp2CXiaWLvEXD3XRr+onvYLY UBRsjl50BAW8g7iRqK0dRMcv5pzpYZ9rDQBqU9eUVictXOhjIqTZRt8pCewSOa1MvZHZ 0w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3h0dhjwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:45 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70iW8024942 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:44 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:39 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:55 +0530 Subject: [PATCH v2 05/11] clk: qcom: ipq5332: drop the CLK_SET_RATE_PARENT flag from GPLL clocks MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-5-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1111; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=ZMuO/OGGG4BmaoyshH9tomZ8rVR0tovrtTjERGXp4Oc=; b=nLmXPGasNUe2LREpBVzbrrYzzmZd4vDESOo0aO9F9bDs88EarSBugwhbgC9RrPJGQER701/0J hRf1R2xBaNMA/PSbgt6yTCP0ugPQCXceU2Dlc3zFEA/Y77HAdU8xrlv X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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: MgIx0NoCfztZjp6x9IaL0W_LXxsum0iF X-Proofpoint-GUID: MgIx0NoCfztZjp6x9IaL0W_LXxsum0iF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=813 phishscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 malwarescore=0 bulkscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:30 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776999568690934628 X-GMAIL-MSGID: 1776999568690934628 GPLL clock rates are fixed and shouldn't be scaled based on the request from dependent clocks. Doing so will result in the unexpected behaviour. So drop the CLK_SET_RATE_PARENT flag from the GPLL clocks. Fixes: 3d89d52970fd ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5332 SoC") Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - No change --- drivers/clk/qcom/gcc-ipq5332.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq5332.c b/drivers/clk/qcom/gcc-ipq5332.c index b02026f8549b..6c74a117ef0b 100644 --- a/drivers/clk/qcom/gcc-ipq5332.c +++ b/drivers/clk/qcom/gcc-ipq5332.c @@ -114,7 +114,6 @@ static struct clk_alpha_pll_postdiv gpll2 = { &gpll2_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; @@ -154,7 +153,6 @@ static struct clk_alpha_pll_postdiv gpll4 = { &gpll4_main.clkr.hw }, .num_parents = 1, .ops = &clk_alpha_pll_postdiv_ro_ops, - .flags = CLK_SET_RATE_PARENT, }, }; From patchwork Thu Sep 14 06:59:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp199669vqi; Thu, 14 Sep 2023 01:37:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSF9m7RgWovpb6tN9wsimAGA3ky40ncUAcfjw1qLO65neOMLSWJJdrOx0Zkb1yp3OYUlHt X-Received: by 2002:a05:6a00:c87:b0:68f:dfe2:9f03 with SMTP id a7-20020a056a000c8700b0068fdfe29f03mr5555322pfv.11.1694680668432; Thu, 14 Sep 2023 01:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694680668; cv=none; d=google.com; s=arc-20160816; b=Zi24j4pH5jbwyO6TQk2mPYYZnzW5+iXWVlu5DgZJREx15MW3bpSo7+Hu908ZDoZdeG duFVHRo1tzVbc40QQIKSooYSPvVWo+0pwKoZrQoDWqgmy0l2lu2+rupe7RN8wNn2s7NA YvlbvsqpUI1e4kFzus4O3+l+I5OdopOQz6tdudD4+39cG1gETs8/w8JO0h+bDXgc7BMY xMi+L3f48NdVt2NbgsU5Xf2Re/RaGL4/iP12tlxz8a+BUuObbaIbiUBBzo5zbK3teW0A hLQOSM6KIoVtf/MFuSLvm63SpLBCNXQ5kJ14HuvigeCqWTixbCrK2moYpgEUUbW3NjGc J4sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=D9wQ/wsKI254w4sGNQyQOfB7yNuf55r7Z2QN4Jh06W0=; fh=Wh5g37wY6pciF04miuzJJbVnrpdfhDKwoDs5kMPKuMo=; b=aJ46JCu5j7DEnbBlwa+WTHOG+wNxRubrXwjm8dWA1aicUb4kNxBYxvr90y0wQ0gj3c 4j3fqmLqypb6/mKIiazueZrG63BHUBn8ZXUYCv2UBqb9jvVe9Fb6o7Z0/Ju1RVkn2bHa pZEpW02DN0wJ7I0TPfkcwG6w50tL0KLexd6IsB7IAjd/2RSrftoYfy7iLGuEB2pupFKJ 7yi46R8a7HbTyTTVQqtMUDFviy861XAVuUMqy6kMdycJja+n4214rIMGbhxgRrxTRN9J GQWGPm0tPIIYkHCZMrHgneaFRl+hBvM8WlsKr1pA31RiB3PLrSk1Qq+G3EjPdhvg0N6g UOag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hW4EsnKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t22-20020a63eb16000000b005660335e26fsi1048313pgh.485.2023.09.14.01.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:37:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hW4EsnKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 72FAE801DD93; Thu, 14 Sep 2023 00:01:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231752AbjINHBF (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235759AbjINHBB (ORCPT ); Thu, 14 Sep 2023 03:01:01 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 482C0E7E; Thu, 14 Sep 2023 00:00:57 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E4j0q6007851; Thu, 14 Sep 2023 07:00:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=D9wQ/wsKI254w4sGNQyQOfB7yNuf55r7Z2QN4Jh06W0=; b=hW4EsnKszV/mjOaNr/m3VuUjYSysaIq46Pr/5b3cQFjHALyKybTUMUELKVbFlh/fon5m BABrag+LT+Ggj8I+HmBhg4rVe4m14Kmqqshn8Vn12zZ90QwO9pVpY28pJJL/QdArxuT1 qfDlXIMNqCY/Z+exWHTATTtYG9XmbgAMA5sDe7aSPOORQZdRA4nDJIo4kDn9zMQscDp6 I6p2C8MRzZ4A/RrGJWSKjgQAuV8x8Ph2lR/SklEYwfNatY5i96Q7X2/CSXwznvHqgKRb I9ClPfSq8W4/UMHNALLypZiMntX8Ad/ib01XqgSTUe0fnLBHwhVDSTvEKY0rjgGw2HT8 vQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3r15rncn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:52 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70pP8019995 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:51 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:44 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:56 +0530 Subject: [PATCH v2 06/11] dt-bindings: mailbox: qcom: add one more clock provider for IPQ mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-6-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1131; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=RJl8bxvvLk6GpCZveb20/nrwi1AzkUemX9HSqoBKd1o=; b=IHwFjXd4Qo+LlCRkw6H68m3aLbOlV4yO6PY5oKyvzy2bjOUXB/+b/WAYnzi/jdGS+4aXF5mQV iOdcirC0I+VCs/GbU1ccs+q4NeJo9eS+1D5v8Vw7CN19yFVU4AcN12k X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: Bucggy8S8LNqR0r1649nZt-btjv2jPr5 X-Proofpoint-ORIG-GUID: Bucggy8S8LNqR0r1649nZt-btjv2jPr5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:12 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777001476343763084 X-GMAIL-MSGID: 1777001476343763084 Mailbox controller present in the IPQ SoCs takes the GPLL0 clock also as an input. Document the same. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kathiravan Thirumoorthy --- Changes in V2: - Pick up the R-b tag --- Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index d2e25ff6db7f..a38413f8d132 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -125,10 +125,12 @@ allOf: items: - description: primary pll parent of the clock driver - description: XO clock + - description: GCC GPLL0 clock source clock-names: items: - const: pll - const: xo + - const: gpll0 - if: properties: From patchwork Thu Sep 14 06:59:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp326691vqi; Thu, 14 Sep 2023 05:58:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwPRZN0zlgRO3Ekhn+Nx5ilEEE9y1w+bRM66dnLn9u6x5eVqnrJViL6DcQUXgO0boTP9Rd X-Received: by 2002:a05:6a20:734c:b0:159:c918:1016 with SMTP id v12-20020a056a20734c00b00159c9181016mr2336533pzc.49.1694696320064; Thu, 14 Sep 2023 05:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694696320; cv=none; d=google.com; s=arc-20160816; b=de6l9oMipmZMHVbVBkPYeVvINu1Cg6/Fc5rLzCxhcnT25iViEeAbzYzaMVQxh4qrQE xoCVhnqaSSIi/KnQFmvFnSQJdU8TCivOdm5PzOQfYx7feb/eXouiYHSn2SaAtVlR59kB uRQiiYo6qlKwYLBx5ovplKIdb1i5xD5hnee/asgnvEQCS1A1LYW6jR+jPF62bLDcM2fE ++yQV4nSHmU/6hxblrecvDUvWGSuKQsLC4S4/R84eBshKjWRqSfUY0Te5mEbMnSmBNtL FVlzrFEmVr/eK7+x2ST6To/lXd/vYGcYPy8cPjdc3Zq6O4RnVP/+PvOoFcY4t+g+su+6 HgBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LiD3LvDZ+UPBugMGzkY7XarM7OFaqZovwvV8zwDKJCM=; fh=LAXcebzpE6V5k/JOCTKB1AMFvCiLQvFVoyCjGldasyM=; b=YPCp4aYglzC5OqSnyT/7+Kchqf6vaKpGLMSg9OiO9+wJjZPwoMxhOgyillfsWOnfU1 81faqg4SQdc0DDcUMCEW03VDU5OOMTt4TXx1m61ZIRVK4BfdSdxooB4jl+wevfcL1CV4 bj04fQTvScJ4SEV/hkIE/SttmvImxJDH/6pqTMsNJFYBu5E3sLrtwomXuuSNXmYP2Zem ptjF7jJi3HopYRKFqFWEnoamiHRKlKVqP4OqUrn2eZ5yHGwhqLo9wUWRTxoxfyqWgW/V GvC+MQKMXjHzJwMt8N9d3t1dwBSOXxhJl6J1MHnwfr4ALf6JrlcTnDWNzmwq8LEfNAzJ m8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="llfYURq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id l16-20020a170903121000b001c3845d008csi1711247plh.424.2023.09.14.05.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 05:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="llfYURq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 01F8A8186525; Thu, 14 Sep 2023 00:02:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235885AbjINHBe (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjINHBX (ORCPT ); Thu, 14 Sep 2023 03:01:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D172BE6E; Thu, 14 Sep 2023 00:01:18 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E237v6016462; Thu, 14 Sep 2023 07:01:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=LiD3LvDZ+UPBugMGzkY7XarM7OFaqZovwvV8zwDKJCM=; b=llfYURq/nkGEqP1JQS3pjafZdaUuZIh4SemFjmAjocVXqMCbnb68HubRLk0NykIUfQHL Um0hj7RIXW93LgjlUN7+EZXPGYwsEfqoede05wOgMQs94XTEa116ZtRV2qL6wv6IEsOY j0m+SB/LsTreApdQLTbLs5CwK/tS1qzE85hFNPqh5HjnSpRdPQMtR/zcHy1m31IhMP/c PPijBHv4rq/f6IHXl4vQGWlLJ6GKwZ200qiQXXXokHey4Vaphw3Q8HG94O5hMjMcvKKI qsVWmt34/KNGkgnEkV2/tFJ9bn9REUsSN+aNmxZOQkrI5NW4Qa7lz59AOOtCutZb3kmi IA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6c4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:14 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70vrw020152 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:57 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:51 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:57 +0530 Subject: [PATCH v2 07/11] clk: qcom: apss-ipq6018: add the GPLL0 clock also as clock provider MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-7-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" , Robert Marko X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1271; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=0WLXM7UqBZpsd0pHbjXLnJu/oCGwNfmF+vKO/PV2u8k=; b=fycx2BXyEF2j8rwWSoyeowB/WDt1d7i0/e6F/ZzF6MjPiruezY08l5sje0mGps2MWjtNyCboh K/puEx6hiooAuC61b9fZdGKgTY0FQ+XqOTnJez5ZbGOiY8nQOxEolf2 X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: gywkCSXhlFJUEcY0CM-i6lZ8dJlbK2oO X-Proofpoint-ORIG-GUID: gywkCSXhlFJUEcY0CM-i6lZ8dJlbK2oO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=975 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:02:22 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777017888607425566 X-GMAIL-MSGID: 1777017888607425566 While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured and select the rate based on the opp table and the source will be changed to APSS_PLL_EARLY. Without this patch, CPU Freq driver reports that CPU is running at 24MHz instead of the 800MHz. Reviewed-by: Konrad Dybcio Tested-by: Robert Marko Signed-off-by: Kathiravan Thirumoorthy --- Changes in V2: - Pick up te R-b and T-b tags. Thanks Robert! --- drivers/clk/qcom/apss-ipq6018.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c index f2f502e2d5a4..4e13a085a857 100644 --- a/drivers/clk/qcom/apss-ipq6018.c +++ b/drivers/clk/qcom/apss-ipq6018.c @@ -20,16 +20,19 @@ enum { P_XO, + P_GPLL0, P_APSS_PLL_EARLY, }; static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { { .fw_name = "xo" }, + { .fw_name = "gpll0" }, { .fw_name = "pll" }, }; static const struct parent_map parents_apcs_alias0_clk_src_map[] = { { P_XO, 0 }, + { P_GPLL0, 4 }, { P_APSS_PLL_EARLY, 5 }, }; From patchwork Thu Sep 14 06:59:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp587989vqi; Thu, 14 Sep 2023 12:51:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7vdPFa/EDhZJ4L7TRRJ75XNPRrVurZzMsnlDOLZxZ2DpGGn5tyBv7swpkhuehBRSohFz3 X-Received: by 2002:a05:6a00:1989:b0:690:41a1:9b77 with SMTP id d9-20020a056a00198900b0069041a19b77mr569773pfl.10.1694721084745; Thu, 14 Sep 2023 12:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694721084; cv=none; d=google.com; s=arc-20160816; b=CR7ph8hB+Ks7kfhkE/tYbiq4LWpaezdC2NqVg7dNY3nLaunYjMgWO+xzwhJRM5sV7j peghc/DMQaGg2svf3b/LbFh4UZKal6rWs/eAV7rqoKDeyaZZCPlACpZXdkmmQ1pESGIN qi3qGXu6pXOM6HRPES3A4EUsHvBCbO5etdh/M647nVjvLgetpK74m2QEX4DfCizEIkIS b8/W00kf2CHGpHy6XRQfIgqd02ierymYR9ac1NJ+b1IBIOL7CZpwOu90yXLHCMefx5Kl VcwVMX16wiLesLIwheZvSFqklXbe87DwRNW4cTV4KXdaXpUR1C5Ew+/PNm4MoaTwFgPl q3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Dg8yePeMXk6SuL/s9wPiXmMtqd5f1HuB1ZPVH7RbQWg=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=yn21hPazFY0WiWNpVfWnmtmI5x+HpQJW0e7MzmLvWRfAQf8YocJ9cqsSEgXE36fzMz jK+5Rm0LDxiXYdYgfKAYvifCrLEBrl6kPT/YDgVTJFA6+y95L2F8N1bBI6962KivOR5h wyKMQKPDXaQ7e5T3GX3gqkMkVbu/BzLsrdlCsGjK+vQYlT1LSSmn23i7jnolugS7sNDI 673lwIf/c2R5aT5BTWrhBzr9DsPvZaNeGSo9mPGSPH4B5IqhbY/pWhX6UweGCUtQGuKz Uoij2BFOCtOZMZ9GFaWZLssWUCIAOusObeKfTVtZBOFPoTxye+MzZ8P9dmPMoGZD9C3B UuYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="LYNV/Kuq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id bx21-20020a056a00429500b0068fc151fdd5si1244680pfb.177.2023.09.14.12.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 12:51:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="LYNV/Kuq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 028BD8247770; Thu, 14 Sep 2023 00:01:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235844AbjINHBa (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236024AbjINHBU (ORCPT ); Thu, 14 Sep 2023 03:01:20 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F34BE59; Thu, 14 Sep 2023 00:01:16 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E5wHG7000988; Thu, 14 Sep 2023 07:01:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=Dg8yePeMXk6SuL/s9wPiXmMtqd5f1HuB1ZPVH7RbQWg=; b=LYNV/KuqJ1U/r1r1OCLWdmNz39h7DbQJF4V1bOdWxYFtJmQG3PBcs4MP9oPrdvLaFaqT 4v2xRAiEpGtRKqQcGWg41PTUD7Vii1OXfHmLpPjTxSE3zq4zW692sKC9ajO6HQ8LpqfI aaMtmTNsDX4ODKCaMgT5ztyWrf1ItR1o6x0d0FBQUIlVyWLSDZDOuvo9l8FKm0QlhJ8a oyIdneT4CXJ0y3UnXB/Bg0tgVlB/eXZYa9Mnglz9fVFqZy4OO8UIU7nJdhRccN8Osh2u IR2mZd6a0KEbtTiCtyVLjiRBoKPZTb4uWCtXxdSWuWV3RvA3irDH7bWgrkDkK+mUYZrJ dA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3ar3jmwe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:03 +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 38E712na023370 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:02 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:00:57 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:58 +0530 Subject: [PATCH v2 08/11] arm64: dts: qcom: ipq8074: include the GPLL0 as clock provider for mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-8-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1255; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=1ug/sW+kzuMORC21mgnQOlnFEwUOksulPA68xrrHMRg=; b=G8S+bURsKhd4b3okT0iuutbUpLpoPigwAAzr1aK669ErDT/RX8ZBAcoQJddUb19yHbF6l8ua2 aOIrpsQf8gzCW8PQ9lp3hQ2KNRTns9YiqrTCOTHyYhkkWp7GD/MUKB2 X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: hWmykwGiHMv2sAQezU959x2G9BRfJnBS X-Proofpoint-ORIG-GUID: hWmykwGiHMv2sAQezU959x2G9BRfJnBS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=845 spamscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 adultscore=2 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777043855871984977 X-GMAIL-MSGID: 1777043855871984977 While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured to the rate based on the opp table and the source also will be changed to APSS_PLL_EARLY. So allow the mailbox to consume the GPLL0, with this inclusion, CPU Freq correctly reports that CPU is running at 800MHz rather than 24MHz. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Splitted the change into target specific file --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 00ed71936b47..0be19267bdcf 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -719,8 +719,8 @@ apcs_glb: mailbox@b111000 { compatible = "qcom,ipq8074-apcs-apps-global", "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; - clocks = <&a53pll>, <&xo>; - clock-names = "pll", "xo"; + clocks = <&a53pll>, <&xo>, <&gcc GPLL0>; + clock-names = "pll", "xo", "gpll0"; #clock-cells = <1>; #mbox-cells = <1>; From patchwork Thu Sep 14 06:59:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp679406vqi; Thu, 14 Sep 2023 16:08:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZ7SFrVgPCiycK706SVWcPJlVMgRGJDeUEvKhpdzzt8VOz9029+ymXoozif2v0uWWebVg5 X-Received: by 2002:a05:6e02:1a6f:b0:348:cab1:4d5c with SMTP id w15-20020a056e021a6f00b00348cab14d5cmr279221ilv.10.1694732901422; Thu, 14 Sep 2023 16:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694732901; cv=none; d=google.com; s=arc-20160816; b=FN99Fn/Z+FoKJ29vAT3hjWkLF6i8QV0F1vlW/uSsF0A6UBKNmWtjzoE/Txy7uggml4 75kY6mBtmMbPh4j1TdNHtde+wOxjhxEeWLSDIjCoMbekVrW3uPavIJX6mBbN7VMcZ8BR R72AOdlpu9aVKVLQDstojGpJgw+SylyfZO24YuacAfHfaY5xJiF7F0noTbVNb0yXX2Pz ETMKgmymySQ4yo9LEUsMMqMFaEn7KS5YEwmTeNadCvusuJoZbbN5WGpuloymAewraXPY UcsE36V7Ws0urYzMLuYhDERD7BQtpIJV+tW9tFRWKjRMYC3ALkTg3vmY7Awp8PbTOrfB wpIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=cIekoNZEBqcV+2+/WUQX5RoEjtkal88v8Lj7vPwgbFk=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=CKC5PhfFtsdwAp5wlLfkDpoxCt0+KpE5ruHBtcmWIMHc12X2ggbooL+X9rf+TYEpC+ AI3hDMp4tGpEeoZ9AeP28ftEEPGd1JlRd60lDKK/VphAuPrENCtjd+d5yHbcw1iY3UDC goZZFDD8azPd+EuNXwmjtZAmzSPC2cvWseA25M3AYJqQn7Mkc6wkXiclstVhjMCqmkZw 7yxNzJJJD3r7IdRjy0D8p/zuAXhXVC0GhadqTgzA4dwCqAq1u4Y1DcM+P/YVzI/o1uhM fQ2mxPfCGK5sfjkhU5+vaA0w5GvNtX9/DaUaOu2J7BA5/3jshiEW8u23sexwuwzjEtvP UZsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HpYXDqBw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e1-20020a636901000000b0056956177395si2168710pgc.512.2023.09.14.16.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 16:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HpYXDqBw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EC205819F992; Thu, 14 Sep 2023 00:01:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235734AbjINHB0 (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235990AbjINHBT (ORCPT ); Thu, 14 Sep 2023 03:01:19 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 643CCCE5; Thu, 14 Sep 2023 00:01:14 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E6kYP1028472; Thu, 14 Sep 2023 07:01:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=cIekoNZEBqcV+2+/WUQX5RoEjtkal88v8Lj7vPwgbFk=; b=HpYXDqBwCUkPKnEXEqopSiQccWAPcLC2UWjri0E0b7GvXF8i/YA29mYhMEfxshyIEifs nsl0JbIhHBZNQ17XleZ6u+iSDbktLlbwcUncoz6tKbxwp4l1ZGLCAQSwsU8NrLjq0uI8 clyZT47xY/s2iciqZ9uxrbYCkW81daDM3yEtssmtiv8jN/ccqjrXbCuOV7IoMGqDiapE AGxZuRWX4I+DGJJnLzuTs16bpwf5dYVlmVNtg9FsN4dM9kfBiqBbnLQWwsEsgb/snKZD 0SB/VIhOnp4/6gV1EGdNOZ1dP/DCX6PWA2jiuh77ivTGRAIFPyHCy6tf2MatOUny0fCQ Dw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3re30kmw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:09 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E718UZ017943 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:08 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:01:03 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:59 +0530 Subject: [PATCH v2 09/11] arm64: dts: qcom: ipq6018: include the GPLL0 as clock provider for mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-9-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1226; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=0V7ycfieCR7gyMd8CbT+YHreQwaCQ4y1HnsMb/C1JmE=; b=F+6GRbFKbSfTRkzD2VAF21Y90M9zygGTvB1ZSbRelL94mZYJc6kHmMZ+d7N8+Q8dpwoODc3al vcEz3YbAgexCkjRm43ATwFQ5gVUSSwLOsHokpcEV3s1lgC+DdcL5B2Z X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: ixyj2jpdkEpsGemlz3W6YzrpR5cAORsn X-Proofpoint-ORIG-GUID: ixyj2jpdkEpsGemlz3W6YzrpR5cAORsn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 mlxlogscore=845 lowpriorityscore=0 spamscore=0 clxscore=1015 suspectscore=0 impostorscore=0 adultscore=2 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:48 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777056246674987330 X-GMAIL-MSGID: 1777056246674987330 While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured to the rate based on the opp table and the source also will be changed to APSS_PLL_EARLY. So allow the mailbox to consume the GPLL0, with this inclusion, CPU Freq correctly reports that CPU is running at 800MHz rather than 24MHz. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Splitted the change into target specific file --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 47b8b1d6730a..a30a5b893762 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -619,8 +619,8 @@ apcs_glb: mailbox@b111000 { compatible = "qcom,ipq6018-apcs-apps-global"; reg = <0x0 0x0b111000 0x0 0x1000>; #clock-cells = <1>; - clocks = <&a53pll>, <&xo>; - clock-names = "pll", "xo"; + clocks = <&a53pll>, <&xo>, <&gcc GPLL0>; + clock-names = "pll", "xo", "gpll0"; #mbox-cells = <1>; }; From patchwork Thu Sep 14 07:00:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp415167vqi; Thu, 14 Sep 2023 08:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIgI4qjXgS/vuuR0H72xwjMcMU1kwcOmB7IE7EcSowNn53yk/q6b1/repUDfxy6G70R6/p X-Received: by 2002:a05:6a00:1487:b0:68f:ca4a:efd with SMTP id v7-20020a056a00148700b0068fca4a0efdmr5869216pfu.9.1694704027452; Thu, 14 Sep 2023 08:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694704027; cv=none; d=google.com; s=arc-20160816; b=UBKwoZFkO8bMaccMLiiTelToqxIyDdY1vAbq1pEpa6nTMxQDXZVz2qEDK24GC/vMmP L3EahpsxJ4UPcQfJ8lwSooW14lcxZqfVURmqCGdcAyP9XDbrcL/ysLIuiNrCw3FQy9Su tTkpTJfzRhPguirNEJstVmgs26jRLd4rytH5TL0EkeuxsFGUM8DSW58F5blMYse5n3Yg eEVupXMHRLuQIi/ZW/EgAma6B08nQzYLewtizqYRo/Pmixxz2yPs+ZUU9F7hajmNuFdt pMPeH4lpUw/DKqJ23203N8Sef+zmp+SkOKeXuIwEHSnHpqEXBguU8tPd2a3M9y9j9KjW pz5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6bUxuFmDS4klU4fka2mvvCCsFdZpWPq+L4yzDGtwpo8=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=mrTgAqFRlQ0YL4wMz8kwe777gVQgpAqCxPppXGYzCo3jg6NMdy+NK1GLCfTZJ+yZUY TfwhvKa99dozMl7XmBeS8MkGx4UUpoqUzDsDBfNFR+WQg45prSgBwIvy4NFoXsT+XB/0 l43yFyovm38nhAJIdp0eiO48t01hVT+TOF7Oh7HtJQwYl/bYMCzXbmlKInpuxJpQDFGo 3rI6t86OtAJ8Y6k1Fi/sGZrdK1hf4jSgmxQUYaJ5mXn50hcgGVnzcQC3dNZ0HmBBj5i9 LaVlOlHpcyzUbX7eWH3r/aK8BZmDyDoQfFZFYG7/lF1s4UnCkgUfzAQwkHh9ZbxGqwig xl+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i181YpEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id br14-20020a056a00440e00b0068fb5cec8cfsi1781777pfb.267.2023.09.14.08.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i181YpEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 692038218878; Thu, 14 Sep 2023 00:02:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235822AbjINHBg (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233607AbjINHBY (ORCPT ); Thu, 14 Sep 2023 03:01:24 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 167DA10C3; Thu, 14 Sep 2023 00:01:20 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E237v7016462; Thu, 14 Sep 2023 07:01:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=6bUxuFmDS4klU4fka2mvvCCsFdZpWPq+L4yzDGtwpo8=; b=i181YpEvLJ38kFFhde718m4MO4L1kpBXzOeftAlrkLebvOlGewsFzH84saVEVdICBBua odF4nCdy9SiSB4ko7LUKGfum+8usoSDoIZD0RGO3HhP0DfT4QQlyf8JdjSDSS7Wq0Sr3 1gz66GteZD0P0GUjvJ8jWy5tfWZu521OkNAbtjl5EwqzcyIVjVk9wvB7xRQ9OjRcpI1Y V93xW/8VUqE9RUxfBizbIIIKmT1vn7YNv7xvPD7K48ZdY+uwOU03VRUtxZDYk9pjprym op0OqNKubgllBg6LbLUfxolvuPt9FcLrjcTMoUz+4awI+nu9XwObwzxghvLh+GMRsL+r wQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6ch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:14 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E71DET025648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:13 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:01:08 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:30:00 +0530 Subject: [PATCH v2 10/11] arm64: dts: qcom: ipq9574: include the GPLL0 as clock provider for mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-10-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1231; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=veUniM41mszJd7aRSOLoQFrZylo/OvtixnEi2jYQD+g=; b=YmuzWpY0/eLnQ8avGXiBUEaaMIW0z1Z/W9uWq0dWK6y1RfzlsnoHOA6ouEQC1mx1C8bLnBn/o l5Ggj1UQHTUA4Z0FgcoPTteTe/6/hJmSJKXagPbU0QoKbD/xXL7mQI+ X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: BDRiFF-3wDs-KOYGKY9YKIyuzMH8KzPz X-Proofpoint-ORIG-GUID: BDRiFF-3wDs-KOYGKY9YKIyuzMH8KzPz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=1 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=803 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:02:25 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777025970393963546 X-GMAIL-MSGID: 1777025970393963546 While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured to the rate based on the opp table and the source also will be changed to APSS_PLL_EARLY. So allow the mailbox to consume the GPLL0, with this inclusion, CPU Freq correctly reports that CPU is running at 800MHz rather than 24MHz. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Splitted the change into target specific file --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 51aba071c1eb..89edb4b852df 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -652,8 +652,8 @@ apcs_glb: mailbox@b111000 { "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; #clock-cells = <1>; - clocks = <&a73pll>, <&xo_board_clk>; - clock-names = "pll", "xo"; + clocks = <&a73pll>, <&xo_board_clk>, <&gcc GPLL0>; + clock-names = "pll", "xo", "gpll0"; #mbox-cells = <1>; }; From patchwork Thu Sep 14 07:00:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp508181vqi; Thu, 14 Sep 2023 10:27:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTIB1yaVl40QUBze0JltRsXQ1hbtwdWn5vcrsaLDA7SQYkstzWeh9ZiwjIhbRZ/gKx9jst X-Received: by 2002:a17:903:1c5:b0:1c1:fbec:bc3f with SMTP id e5-20020a17090301c500b001c1fbecbc3fmr6844215plh.5.1694712462887; Thu, 14 Sep 2023 10:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694712462; cv=none; d=google.com; s=arc-20160816; b=qKqehTTDtjqi34kl7uvWZDMduiRn9XJ9fDRyH5IWrIlAaYr5WqqpeQrG8QebPlamK3 RfzFnsCL3BrMXUypJ5lFIZK+y5aLrwTVydjKWjyGTdS8yH6XB5ecRnR6WAik3v4PlvZC HytQCzFvPOJx6BVvNyeTc2YmbKoMmaIJ8OGhjN97BZrnwUsFekzgIOu/49bn5F6GF4Ti MT8g8bgIt4dPMQKS+EX/wKl60Mdu1C+oReQK2HgIv51gKAb/0mTbvUDs6PVL4aLbvWoL vPbuYJD5Pnl4TieUl4YL/kK8Hdy/ipgWR5H9NGpY4YIgO6a83iUE5rGHv/7ZNXr2IPCZ ffYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=0CyX3dFxQnuV4INYMUbKL566KX3a4BhqW3DaG4m3JxA=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=Wiw5nlPx5N/ES4fF3bujl5KReaoSMNvh2dtxtt0viXUAxEoQ4SBmB+lTIIxCNcapK1 wik/HXczeSI39SsDZ0RZfOoLs39TWlNGfUngvjsC8g+FSuEt2nyf4lpsKyfVJa0+i1mW NYJ0j5Gi4V3YvoHMBYhhw6/OgvVq1FWc6lXP2pndUtpN/r8bRTTnwa8MxS1uEPrJxpsl Y+lxmuM2+QhMvT3WsfZDDv+/LMhh0WDyLwKhL4fEZQUhvgDpJ4yDZ5yGufTt0Lx+nuwH FdS4HHnto8PZ8nxIAOmTkvRTUMDQocx5meyG7AXLjOmNDCgNAuqmrah9L1vKfXzQHRJQ cl8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgTwTr8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b2-20020a170902d40200b001bf1005924csi1923444ple.321.2023.09.14.10.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 10:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgTwTr8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B39CE828E86B; Thu, 14 Sep 2023 00:01:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235999AbjINHBo (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235836AbjINHB2 (ORCPT ); Thu, 14 Sep 2023 03:01:28 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C2EE4D; Thu, 14 Sep 2023 00:01:24 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E4fNfl024818; Thu, 14 Sep 2023 07:01:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=0CyX3dFxQnuV4INYMUbKL566KX3a4BhqW3DaG4m3JxA=; b=WgTwTr8wNzoql/+yBlyGN1RDrqEUEEtmEvECz0G0b4BsfSa/i/UJ/qvuFDrwsmwFyPJM Z5urqKdnwbSMaUDe9tiKz2cFwwy8PBuf5+Vu4bnYC75D00SVlPT6ZXD0wBp8wGJiHsQw 4Ye0iaI3N9+iZHWSZjcloowWRXGkAyKB+auPuJzSdx6Csaj9WDBEDQrVYIKZqIqG04h5 MczaQnaPqnkAcqH/ewGYUVStIFwYF1daojQjiciJ4PaIxqc7kPcCMifXjDMRxnN1iNs+ HVHXW4YD4n/joBTTVP3Y/v2VlvI1aWktOoPaAKWjlP0/2kZVc8UYBmuBbrDYgZeo4L1F zg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6ct-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E71Jwd026167 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:19 GMT Received: from hu-kathirav-blr.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.1118.36; Thu, 14 Sep 2023 00:01:13 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:30:01 +0530 Subject: [PATCH v2 11/11] arm64: dts: qcom: ipq5332: include the GPLL0 as clock provider for mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-11-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1223; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=aXroxBycIALRxsYiDXTUpvPyc+RSgTjo74t6paOuFH0=; b=48mqn/p5Fc7dWJyGe5Se2k9cTv/rMTwuHaLI8XeHBz8r9JW7ryN34H1SSYrBd7DRr68idmo83 z3QCZHFgbKcCFCBriV92IMZnMjZA4aVJrWFHHQJHaXZRS8NbprR5AD+ X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= 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-GUID: Ftb7vQ2iUuzIAdshwAYuCC3Txne84cHt X-Proofpoint-ORIG-GUID: Ftb7vQ2iUuzIAdshwAYuCC3Txne84cHt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=1 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=803 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777034815830616145 X-GMAIL-MSGID: 1777034815830616145 While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured to the rate based on the opp table and the source also will be changed to APSS_PLL_EARLY. So allow the mailbox to consume the GPLL0, with this inclusion, CPU Freq correctly reports that CPU is running at 800MHz rather than 24MHz. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Splitted the change into target specific file --- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index 8bfc2db44624..82761ae199a9 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -335,8 +335,8 @@ apcs_glb: mailbox@b111000 { "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; #clock-cells = <1>; - clocks = <&a53pll>, <&xo_board>; - clock-names = "pll", "xo"; + clocks = <&a53pll>, <&xo_board>, <&gcc GPLL0>; + clock-names = "pll", "xo", "gpll0"; #mbox-cells = <1>; };