Message ID | 20240229-camcc-support-sm8150-v1-1-8c28c6c87990@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp192750dyb; Wed, 28 Feb 2024 21:43:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU7Ao/kZe8zyLliurFnmMS9WasIOxBiUTfvLKhr6N2XF+CmHrjKXlQXOQorv4AGIE/1aFkBs8SMZrKpiskq96MVm9gl/A== X-Google-Smtp-Source: AGHT+IEeEYr8qaNpJBynVibq4jwxblRussmt5MUdYhY6vRT6RFyViXFsoJNdP3ymIsEKE8qLS0An X-Received: by 2002:a17:903:22cf:b0:1db:ff7b:d1fa with SMTP id y15-20020a17090322cf00b001dbff7bd1famr1381608plg.47.1709185382842; Wed, 28 Feb 2024 21:43:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709185382; cv=pass; d=google.com; s=arc-20160816; b=Hwzu6vU4qranrp8N4wBr81VJvLLWNaeo3z2BWHfAtWigM6/ko6ea16VRzDDGWUv7r3 XMELyZYRcs1wakCpiNZ4Ot7Ps0DY2ukF2Q1fPTLTzh7BdhNPp34LIXyRVOuZwiTOEzsm I1K7OiCZqoJlMpNPhUI4yZqcDDIE5hopISup68m2wtNciK8UJtT1OlV+zHHdBq0KAcPG dYRBaWmHKpkIouclmu+GZbZPasFk1MjPAb6Wu8pi9UzjVrU2JYiGIoMrQXaRl4CIhIF9 GPPpy3DTsbXjKpR2sJMpbHYDlkve2TcjUWqoDHtxWhjXe6wQGbqiJFlRHdVOXdrXzmeF pzFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=S1qRGs0HUaMy90heuuUw2qaX9/payA7Vq1TJ1BurrRM=; fh=5D9VBdX54JucLXaw2s0Dv0fOreBhhARrd5KnQtHXXbY=; b=qavkKLHk94cNh8FiHj9dzF6cVDXQkDtcVytwLrNkyPzrIZyOvRW1MY78xfnyNhX3BQ Nr2ASz9KJQ5F2SNKZtJwzYDsCr8QDmMNFgXxVmVhHQTS4m96jaWwzghAQ9AUS1mcim/x 1AV0QnPOMFeOMTts7iKsGrpam4HPRaWi6YPZ713mREalJtti5jgJAFFeSXPk8NrI6UKB 0z3iNja3Xh3xM0ysy23yy2LaOprEpnM1k+UByRF7n6Gv+VUBb/fhH9GQTKRLfTwpyr+j 3XMbrS/vDKaL54AUfytT/umnu7LsB5QWCLBxCaWZD+riPgIFZMXOrY8hilc+WtTSyL1U lisQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XlkNTLVQ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a2-20020a170902ee8200b001db2ad550d8si599722pld.134.2024.02.28.21.43.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 21:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XlkNTLVQ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86140-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C9803B250C8 for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 05:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D08441C7A; Thu, 29 Feb 2024 05:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="XlkNTLVQ" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C2BB3C472; Thu, 29 Feb 2024 05:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709185199; cv=none; b=rf2Y3s42VcumlgjPKhEfj2xIOV/X+YB6xpyo0e2q2e2lKURRlwUkBfjop8Ilk9Dne0IxnaAoLmtS1RgOHlkKyld15oDIpTZst+U2LP6NmrDqbGBdIE0mwS5gYrxmCWrLQIFcamJ2aIG5CBZvJYaBXT3pXQrkqBjo3m8Ae+TjN18= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709185199; c=relaxed/simple; bh=gLlphfeZwMqykTLE2cgkluz8dCXNxQwpkFEozCoV6ao=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=mdfiR8lxtLvwAK1uS4KpeBvbJ44rW9eHNMxuo0SH7mm3/9xvf/4VGoKohMngLln9J5yaNjNhKflQCoA92+PtQmGIX/HmiV5JjL/VhMaEbulL/MnLw82OSrcs081aFl9UL9xF0w3RrbgzIkOJr67Cl66T5NhTc134eoz17frNcJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=XlkNTLVQ; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41T39GpK004692; Thu, 29 Feb 2024 05:39:13 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=S1qRGs0HUaMy90heuuUw2qaX9/payA7Vq1TJ1BurrRM =; b=XlkNTLVQbEjzIrDOCBd7VpaFBDZFz+6UPiaCRJB6ma+HrVmB65XTXQgZbDl PUvh8Mf4imyVsAtIeGY+59fmr1ws4wvz/Jiit5/q8hh5LRJCyjQQM15CxkpT8SPg ckicjQbkwBGBv1++G/MPc+EQEF5TVZNsxSxkSI2JCEMfC0Nlmd4T2LJDN/4eSoIG KwIdJfGrZ0f269e8RzT7b4v8merZM9sQB0SrdJ4Uex0PWlJuDZY3y/7FXwNRCC+3 OvmsVQt7z7RIZsvGMeFeopxf3zF9yhvTAhi1Fy8PLEe3LjIMzBSZTlQwejHPd2bR 3mud8ejSFLTmVT+HEK8aGcpZ0vw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wjdjngsc3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 05:39:13 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41T5dCvM028758 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 05:39:12 GMT Received: from hu-skakitap-hyd.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 28 Feb 2024 21:39:06 -0800 From: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> Date: Thu, 29 Feb 2024 11:08:54 +0530 Subject: [PATCH 1/5] clk: qcom: alpha-pll: Fix the pll post div mask Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240229-camcc-support-sm8150-v1-1-8c28c6c87990@quicinc.com> References: <20240229-camcc-support-sm8150-v1-0-8c28c6c87990@quicinc.com> In-Reply-To: <20240229-camcc-support-sm8150-v1-0-8c28c6c87990@quicinc.com> To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Abhishek Sahu <absahu@codeaurora.org>, "Rob Herring" <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> CC: Stephen Boyd <sboyd@codeaurora.org>, <linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, Ajit Pandey <quic_ajipan@quicinc.com>, "Imran Shaik" <quic_imrashai@quicinc.com>, Taniya Das <quic_tdas@quicinc.com>, Jagadeesh Kona <quic_jkona@quicinc.com>, Satya Priya Kakitapalli <quic_skakitap@quicinc.com> X-Mailer: b4 0.12.4 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: bR5pfRagSHaICsdQyN3jgCV4sSFj4j6J X-Proofpoint-ORIG-GUID: bR5pfRagSHaICsdQyN3jgCV4sSFj4j6J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-28_08,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 mlxlogscore=816 spamscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402290042 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792210771583870817 X-GMAIL-MSGID: 1792210771583870817 |
Series |
clk: qcom: sm8150: Add camera clock controller support for SM8150
|
|
Commit Message
Satya Priya Kakitapalli
Feb. 29, 2024, 5:38 a.m. UTC
The PLL_POST_DIV_MASK should be 0 to (width - 1) bits. Fix it.
Fixes: 1c3541145cbf ("clk: qcom: support for 2 bit PLL post divider")
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
drivers/clk/qcom/clk-alpha-pll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 29.02.2024 06:38, Satya Priya Kakitapalli wrote: > The PLL_POST_DIV_MASK should be 0 to (width - 1) bits. Fix it. > > Fixes: 1c3541145cbf ("clk: qcom: support for 2 bit PLL post divider") > Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> > --- This makes sense if 'width' is what it says! The change also has an opportunity to fix a whole lot of bugs.. Please add `Cc: stable@vger.kernel.org`. Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 8a412ef47e16..8dc3b8774b8e 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -40,7 +40,7 @@ #define PLL_USER_CTL(p) ((p)->offset + (p)->regs[PLL_OFF_USER_CTL]) # define PLL_POST_DIV_SHIFT 8 -# define PLL_POST_DIV_MASK(p) GENMASK((p)->width, 0) +# define PLL_POST_DIV_MASK(p) GENMASK((p)->width - 1, 0) # define PLL_ALPHA_EN BIT(24) # define PLL_ALPHA_MODE BIT(25) # define PLL_VCO_SHIFT 20