From patchwork Fri Oct 20 06:19:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 155824 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp857921vqb; Thu, 19 Oct 2023 23:21:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTViQiwibDJnK9otPV+ZNbBHz5pA5qqymYlYEA3zwTEyGTtjarf2us7P/INjvFwqcUZKe7 X-Received: by 2002:a05:6358:938c:b0:166:f432:cfc3 with SMTP id h12-20020a056358938c00b00166f432cfc3mr943968rwb.15.1697782883345; Thu, 19 Oct 2023 23:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697782883; cv=none; d=google.com; s=arc-20160816; b=Ya6CptX5WyFzBvtnNsXjsEaASvyD3t9jjsLo3Zx8SoUv2wIyoPSvnCU3WIsSLM+l0v yOidartgu9tYkltJVIpQ/EO9OlM+PYawBMVjqWPW26cOkq8wo1ve6NSnl8yoczjF0M/r TVMNQKxtz0ICfW7JsgsP5YlzvLwD5Zsu/t5lYr4bxJIO8wd7Ea2Im3JauMu8aTVHyzQC ICxFj+KwVQSWmfx+93xS7HqipXg36WY8i++++Uh4Cc/P6W8MQt1AolEhrTCT3TUi30vH sgTlim09cSNsWy1N4OZlSQhEUDFNmRifKOgpxVxRrTcRJVDIBgFU67wtLdH9hKheLucV RMXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=752q2NEkSJqynU3w4XSYItex3HD6Wnytgigz8YSx60A=; fh=/PcbLsdifyktaw5PNVUHNeBf/uyMY7MMN8WFopaJ5z8=; b=IGvF5NoYfNLw5ds1Hbb35nHFws3M4yomdOuAxrtOD4R+aO7qFjTLSaO3mnqWy/MM22 dnAjTujHBVnIUruV2r4REcifcJKbz0hGOZDU6Bivp0Ce7OB4jEd3taXVRnc4KWTbrfsg VTU7RSUdiU3nLTMdXUlOaHI4+7tGo1W6c/J4P4+cHDzqqH0CPVX9dZU7f5KBtIKfiMrW 3xG1iKfc3X8D5ESOYkXDUld+W8HXGpDhk0rw9zgjXpR7xhEbgytcnWoOmyQSwJm+s/nM OUtr+tzP/naaQqqmV3gFiYY0cz1anTDEyXPvfFk2OlqfJ6kK5g8lm77RCU7ErPQJ9fE9 xxMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YYCWkh7F; 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 m21-20020a656a15000000b0058986c61bb6si1270094pgu.706.2023.10.19.23.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 23:21:23 -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=YYCWkh7F; 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 2DA6581F3889; Thu, 19 Oct 2023 23:21:21 -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 S1347012AbjJTGVI (ORCPT + 25 others); Fri, 20 Oct 2023 02:21:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376329AbjJTGU7 (ORCPT ); Fri, 20 Oct 2023 02:20:59 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009D610D2; Thu, 19 Oct 2023 23:20:50 -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 39K53ZDb014006; Fri, 20 Oct 2023 06:20:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=752q2NEkSJqynU3w4XSYItex3HD6Wnytgigz8YSx60A=; b=YYCWkh7FBKh054C0UjgYBl6Q4NYayHPS4c9+TXXBfeJulCoEMUVocthtX7GFppq7iulr pM5w50VySCNxk0Hbz1aNlsd90ebYNNdNFBOm1aKyJrz712UeFNQMV3fQHn4XKOA/h8zo QwhgCs/F1UzXi3SB//PbRNHxy0tr8F9ixKoTJZWSONantSzTWqof4iptLCDwCu7Qm6Hz Rx302raw9rUgE8ZB10JmNGPN6HG9RkYpNzB+JQi6YQjKQypVBcEgun1k07yhjGDzgX2H hTVRoBv0cRYsluWX5cBw+n6CEvijTH3EYQA+BP0NOf9VA+0t8679VFOwPxRI7EbOpVFf Eg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tubxgguap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 06:20:18 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39K6KHM1007269 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Oct 2023 06:20:17 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Thu, 19 Oct 2023 23:20:11 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v5 4/9] clk: qcom: apss-ipq-pll: Fix 'l' value for ipq5332_pll_config Date: Fri, 20 Oct 2023 11:49:34 +0530 Message-ID: <00e6be6cb9cee56628123a64ade118d0a752018b.1697781921.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 5j31JynmEA8pMxaSvniZvOvZY-uubLcD X-Proofpoint-ORIG-GUID: 5j31JynmEA8pMxaSvniZvOvZY-uubLcD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-20_04,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310200053 X-Spam-Status: No, score=-0.8 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 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, 19 Oct 2023 23:21:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780254384419048284 X-GMAIL-MSGID: 1780254384419048284 The earlier 'l' value of 0x3e is for 1.5GHz. Not all SKUs support this frequency. Hence set it to 0x2d to get 1.1GHz which is supported in all SKUs. The frequency can still increase above this initial configuration made here when the cpufreq driver picks a different OPP. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Fixes: c7ef7fbb1ccf ("clk: qcom: apss-ipq-pll: add support for IPQ5332") Signed-off-by: Kathiravan T Signed-off-by: Varadarajan Narayanan --- v4: Update commit log to indicate that cpufreq could subsequently change the frequency based on the selected OPP --- drivers/clk/qcom/apss-ipq-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c index 18c4ffe..41279e5 100644 --- a/drivers/clk/qcom/apss-ipq-pll.c +++ b/drivers/clk/qcom/apss-ipq-pll.c @@ -74,7 +74,7 @@ static struct clk_alpha_pll ipq_pll_stromer_plus = { }; static const struct alpha_pll_config ipq5332_pll_config = { - .l = 0x3e, + .l = 0x2d, .config_ctl_val = 0x4001075b, .config_ctl_hi_val = 0x304, .main_output_mask = BIT(0),