Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1213182rbb; Mon, 26 Feb 2024 02:19:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgWHKNWA40h/6nbZTlYFVfLI/mEKVF1GtaYL9E3b54Qx8yYD6s9esT7KlzkxYaHA5oRhJ98fxFH5HKOrlxiDhNWjOe+z59uORJ7ZZ5Jw== X-Google-Smtp-Source: AGHT+IHHZxFaGZyoXpWUvQOo3A+C+4+RgdrHHaX6RvJMBAKIuCcg4gYyTNdrNWfeKQfMf13zvenO X-Received: by 2002:a17:906:a142:b0:a41:315b:94d9 with SMTP id bu2-20020a170906a14200b00a41315b94d9mr3603051ejb.71.1708942758434; Mon, 26 Feb 2024 02:19:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708942758; cv=pass; d=google.com; s=arc-20160816; b=aHqgNpol8bQmIaNN7ZigjrxSDQDB7dZ/EszMZeZvxIwTpqLCGciob2iIvmmD4gR+mV DyxyrnwggGwny+0xc6sEcex1JJ4sLpp2tZy371IHOnslFVAniHRCc4dwVO6dWjI0li51 N9dqLo5MLEFtcrmlpdkdhKsMjpYEwH8BHG5a/qYvsirX2n3OIGj6q7jU5bHhLagLiOz7 9bIb6DB3diTvz5eubZsXLzHc2tl4Sv1wnbcetx8yToCXSEg7zBg8ju40vPNk5INYjXvM 6O0ckSelJyXQLaAKcRTEVPodmwuh468ixcfN6uvbO6JUoiJFeNvAGkt0iHP74K4VRwFR eiYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bFgyNpvTKVRR+U8TfuEQ8tv0v09yH1UNBUFzTyydNIE=; fh=IAdnR7kNAAT1+szm5jhxvArovulPmp83zF5RGWivvLM=; b=nzsq77uRAHtWzKToJKhMMPQPLS2lqkwoRXFMrYgWUGmPfkrHrnntvRFuMxQVMvNysU YSZ3+jabNK5wRcVzsgY5bEl4qakulWHLfspzqktfE+fWoeD6sgiM4I2FhtYgSxv4oXyB XMq2ZEh544I70Pk+r8vBvANrikicpTjPeHOpy3h2Fxoo2FmYbsNeeoZlorZC86z1ifPO QTHM8yL5GElYFQihoaXV453vV+7fJt5ZwukHuvXgnHkWCTas6da3LNnZ2tk8aSo5TofO L74/h5iLtfz0kGJKuw0tmDuFY1d8rEKO8N0+3BkMh4U4R64Y+IO+mKs7jdRA7imkluPu u6lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="btr/224+"; 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-81121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gz9-20020a170906f2c900b00a4372e6bdd0si328821ejb.286.2024.02.26.02.19.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:19:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="btr/224+"; 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-81121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 33E9E1F27EB9 for ; Mon, 26 Feb 2024 10:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E088550A9D; Mon, 26 Feb 2024 09:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="btr/224+" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACB5250A65; Mon, 26 Feb 2024 09:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708941408; cv=none; b=Srk4WFpC5EEVQsOD4OYxbv22iruorkwHazEvev/E4Io5qc+q0BgUhXUaJ/GuF+C3IzkpTEHNhUjbxX1z1hi6fkY6FgzqhBjfMIBKEB7KV0Mco5DGpNKUJzIV0T8Ot3ejRO4rMAq2lrWWIlitQwlBAemdoD5DpSIrp5dLLpGsehc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708941408; c=relaxed/simple; bh=x6ej4mbf2hIi7MyOcl44WZems0lFvtXLgKuPqoiHvHI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=W6z1rs/v0INvTfs8E8IKQWeZ1ADf4t87OLmvB/gWpoYzDwC73ILeRzPRDm4KBzYVsnlrwgDcKGC3KPDTr0SDinqLnuu0urSU9LD1Fyhw+VCQ9c6EnWrEc7KH+uDUWMJ5r0artFyd/kL+MfTAXOcpzhrLWFRUI/oSHnu2m8ZgTRE= 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=btr/224+; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41Q8ICQx020879; Mon, 26 Feb 2024 09:56:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=bFgyNpvTKVRR+U8TfuEQ8tv0v09yH1UNBUFzTyydNIE=; b=bt r/224+EJ5abP8l9W7alirfHAxcoLbMQVD91KnTTgQb4KVS2vU6BrvKOo3JPSLcCA s3fSEHDO4R7qp9Ld3QxzpFmTfpkYwQEPQbbIsJezS8MkRIpX9u4g14cDzPX9JZCj EgqDt1VhntN7wsZgiYV6RyjmQE29jHVDOOrlE0s/HW6qSR33DUWoj5R2XSWuau6L aPaug6y0BXkvQsUh7zTSWbRXKrfAGdE4xHuQmTBgl30ang7xfPnHUv4m/p6y1GQg FHgSAGSN2pBQglpIqeCY9RL650v3X/VwuVTtL63bjituBt+1E+XNuhRn/mRftc+F nL6R9gpXBVXdDtzkvfeQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wgkxp8hqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 09:56:42 +0000 (GMT) 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 41Q9ufB5022364 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 09:56:41 GMT Received: from [10.201.2.96] (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.40; Mon, 26 Feb 2024 01:56:37 -0800 Message-ID: <8144cb83-077d-46ec-ae10-13d99fba34ae@quicinc.com> Date: Mon, 26 Feb 2024 15:26:34 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] clk: qcom: gcc-ipq5018: fix 'halt_reg' offset of 'gcc_pcie1_pipe_clk' Content-Language: en-US To: Gabor Juhos , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Gokul Sriram Palanisamy" , Varadarajan Narayanan , Sricharan Ramabadhran CC: , , References: <20240225-gcc-ipq5018-register-fixes-v1-0-3c191404d9f0@gmail.com> <20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com> From: Kathiravan Thirumoorthy In-Reply-To: <20240225-gcc-ipq5018-register-fixes-v1-2-3c191404d9f0@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: F-0P-0eFBI0TIKNWrJbtHzkldxBZFZTB X-Proofpoint-GUID: F-0P-0eFBI0TIKNWrJbtHzkldxBZFZTB 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-26_07,2024-02-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402260074 On 2/25/2024 11:02 PM, Gabor Juhos wrote: > The following table shows the values of the 'halt_reg' and the > 'enable_reg' fields from the pcie clocks defined in the current > driver: > > clock halt_reg enable_reg > > gcc_pcie0_ahb_clk 0x75010 0x75010 > gcc_pcie0_aux_clk 0x75014 0x75014 > gcc_pcie0_axi_m_clk 0x75008 0x75008 > gcc_pcie0_axi_s_bridge_clk 0x75048 0x75048 > gcc_pcie0_axi_s_clk 0x7500c 0x7500c > gcc_pcie0_pipe_clk 0x75018 0x75018 > > gcc_pcie1_ahb_clk 0x76010 0x76010 > gcc_pcie1_aux_clk 0x76014 0x76014 > gcc_pcie1_axi_m_clk 0x76008 0x76008 > gcc_pcie1_axi_s_bridge_clk 0x76048 0x76048 > gcc_pcie1_axi_s_clk 0x7600c 0x7600c > gcc_pcie1_pipe_clk 8* 0x76018 > > Based on the table, it is quite likely that the pcie0 and the pci1 > clocks are using the same register layout, however it seems that > the value of the 'halt_reg' field in the 'gcc_pcie1_pipe_clk' clock > is wrong. > > In the downstream driver [1], the same '0x76018' value is used for > both the 'halt_reg' and for the 'enable_reg' fields of the > 'gcc_pcie1_pipe_clk' clock. > > Update the current driver to use the same value used downstream as > probably that is the correct value. > > 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4.r4/drivers/clk/qcom/gcc-ipq5018.c?ref_type=heads#L2316 Reviewed-by: Kathiravan Thirumoorthy > > Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") > Signed-off-by: Gabor Juhos > --- > drivers/clk/qcom/gcc-ipq5018.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/gcc-ipq5018.c b/drivers/clk/qcom/gcc-ipq5018.c > index cef9a1e7c9fdb..5e81cfa77293a 100644 > --- a/drivers/clk/qcom/gcc-ipq5018.c > +++ b/drivers/clk/qcom/gcc-ipq5018.c > @@ -2180,7 +2180,7 @@ static struct clk_branch gcc_pcie1_axi_s_clk = { > }; > > static struct clk_branch gcc_pcie1_pipe_clk = { > - .halt_reg = 8, > + .halt_reg = 0x76018, > .halt_check = BRANCH_HALT_DELAY, > .halt_bit = 31, > .clkr = { >