Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1651905lqm; Fri, 3 May 2024 02:12:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr2M2qrNaf9ixHs4Qqk8zOCEAlCb0jLwuHSaGiwAO0Gxr3rofxM3vFNRyBC3rwS9P4ttVtHmoH7KKKN5W37n9Qi6+OVx/Wi0K6zW2IOw== X-Google-Smtp-Source: AGHT+IEivbAnmhE9x9aFYJa7EyHHl0SZVJkXX22AnvG6fivAUBoo12d5Kc7MwjUCGXqVgcfIED6Q X-Received: by 2002:a17:907:76b4:b0:a58:e3bd:f43d with SMTP id jw20-20020a17090776b400b00a58e3bdf43dmr1394047ejc.2.1714727534900; Fri, 03 May 2024 02:12:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714727534; cv=pass; d=google.com; s=arc-20160816; b=T1hkq78CSAZk0RU1mQXErZwf+L6MWH2kRX15h1ugVsEA8CJ9msTGkQErcT5E2SmLXc w8vjN0KEg6qoGmUIISzfUCmHn5nkxpPUKe1mA353sf2C/sOHgYg0+/2wDnliizFxEgps K13SfT9qs5LIT/ahxsCaWaDEjFRtXe1GPx7fsFPyShePQ0Ty9hIu8anPyvYzzUB/Zu3n /gasceNnbraft4aIlzyVvDRqZC1R4xeR65+1sX+jqP0fExaw43gAsuP5dkU5+NGuHrLF ejoErs+TPvF28GriVzRpQViBk8qvuYGUDCVXb2kTFGqRqH1SEAGSZNFuhZYZQ7jylRR8 oKMw== 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:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=5TYtEABa+Npo1ej5cnl3qJo/mPfhw85IRdYbSazcmzQ=; fh=3Ta2auQfbVFWlyJs/CpjO3liJLHN2MO04SruVmYAMY8=; b=BejSjAxx/7c84HxwnGe7i8ckst8qwub+ZQUjZ/T2MfeIC2H6xk1qhR3CejSVzjbWXH /LU2KPtgBFf9nkWRqsgbLF/ARZqGsJvutLPO6iLOeuRD0UkxNl3nahf2GTxKWgM42zGr MQ1N4dg3TxR29q+Bn4nQtTRA3y1n364WadaAJPIuzqGVq6ABuRXAKdaazrBUk6Yvyjll 1mxPypuX8bwghhBBVniayE8xFBip3H1DoK4LoJzh92QOnmD3dlN/oEXLKlbhOZrVKQCZ MQoke9M10c9tsLIquQjrjEATT0sAJsvaxF4PHTT0awluTQBEBna815W0Ty1Y24aTHL32 wj3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cHooHtXt; 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-167432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167432-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 ky18-20020a170907779200b00a598fdbf520si512077ejc.239.2024.05.03.02.12.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 02:12:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167432-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=cHooHtXt; 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-167432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167432-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 48BC01F23106 for ; Fri, 3 May 2024 09:12:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D179714F12C; Fri, 3 May 2024 09:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="cHooHtXt" 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 84F3F14E2CB; Fri, 3 May 2024 09:11:49 +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=1714727511; cv=none; b=ulGswManYzK43yFjuMT1gS4Hf6pPAV4pHqSCYzXBy45Tm++0AvZ+GQ9uHL/W7rJUrarHde7OUy7A3ZtuxWaX8rC285cDmYGiNyXDjzpFsdssnF2NloNPO+cywIewkJ5RDeD4r0MyYRjjy+5a975UidQWEOUsQUUnClxgdyUamW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714727511; c=relaxed/simple; bh=efRS0J2Mfz3BfrMBUM6bOn7BAON849782woB55PVO+Y=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=IX2e7rVNVquTN6EeuF7hLpCThRbj1yV5haPlXKJor3SUPnp1Fdt0QsT6lEBSeXcjw0btVxnrVRe+daXfksJksMTLQcDzRzDnyVEgQsPOjxUnp1Hb0ZZa7p6TQ9/3NhuYwdiibjGJEJraEAs3Bs8QFj29bxocp2upUX+eh9QfFvA= 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=cHooHtXt; 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.18.1.2/8.18.1.2) with ESMTP id 4436rYn8030152; Fri, 3 May 2024 09:11:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=5TYtEABa+Npo1ej5cnl3qJo/mPfhw85IRdYbSazcmzQ=; b=cH ooHtXthFEgtPrCn4gC0VJyzZx8GmFqzLH7Djgdx+DWz9se3Kg1Htq9tJ2Wd2BuAL cN6yX0QwzIDc4ewt2nALkr7LZFfcqjOiEh/FrpwC0tICYyK1hcywzGWBYWA+VmqP s2xsGFGw2pq296BOAk6V9azvbZcLC+Z/X6E0JtmakSl4btHqeIsGnWwPYJ+F+XDG BHefW5j97VLUePTf9p7xWwGuezKu9CfGA1l5y62CSe35rwsukBgeEpvAKm/zh2BM 3TDcwUs2fOMZs2tfF1hXagpE4qwX+kyH8/2tJvL63mSIiElX9FHZ5ezYPGMiTsQ2 5mD7tAyjtkO500WaWxyQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xvmxyrsfr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 May 2024 09:11:44 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4439BhF5010268 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 May 2024 09:11:43 GMT Received: from [10.216.42.60] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 3 May 2024 02:11:39 -0700 Message-ID: <883248ce-23a7-1f41-aeab-67dc0828566b@quicinc.com> Date: Fri, 3 May 2024 14:41:17 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] clk: qcom: gcc-ipq9574: Add BRANCH_HALT_VOTED flag Content-Language: en-US To: Stephen Boyd , , , , , , References: <20240502034247.2621996-1-quic_mdalam@quicinc.com> <2e05b0e246431d9dcf28c7135fff8231.sboyd@kernel.org> From: Md Sadre Alam In-Reply-To: <2e05b0e246431d9dcf28c7135fff8231.sboyd@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: xn3tNLO9LbxzwdmLuyROzMFXE30ijDug X-Proofpoint-ORIG-GUID: xn3tNLO9LbxzwdmLuyROzMFXE30ijDug X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-03_05,2024-05-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 spamscore=0 mlxscore=0 priorityscore=1501 adultscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405030066 On 5/3/2024 3:38 AM, Stephen Boyd wrote: > Quoting Md Sadre Alam (2024-05-01 20:42:47) >> Add BRANCH_HALT_VOTED flag to inform clock framework >> don't check for CLK_OFF bit. >> >> CRYPTO_AHB_CLK_ENA and CRYPTO_AXI_CLK_ENA enable bit is >> present in other VOTE registers also, like TZ. >> If anyone else also enabled this clock, even if we turn >> off in GCC_APCS_CLOCK_BRANCH_ENA_VOTE | 0x180B004, it won't >> turn off. > > Are you seeing problems where we need to send this patch to stable? Yes > >> >> Signed-off-by: Md Sadre Alam >> --- > > Any fixes tag? Will add in next patch > >> drivers/clk/qcom/gcc-ipq9574.c | 10 ++++++---- >> 1 file changed, 6 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/clk/qcom/gcc-ipq9574.c b/drivers/clk/qcom/gcc-ipq9574.c >> index 0a3f846695b8..f8b9a1e93bef 100644 >> --- a/drivers/clk/qcom/gcc-ipq9574.c >> +++ b/drivers/clk/qcom/gcc-ipq9574.c >> @@ -2140,9 +2140,10 @@ static struct clk_rcg2 pcnoc_bfdcd_clk_src = { >> >> static struct clk_branch gcc_crypto_axi_clk = { >> .halt_reg = 0x16010, >> + .halt_check = BRANCH_HALT_VOTED, >> .clkr = { >> - .enable_reg = 0x16010, >> - .enable_mask = BIT(0), >> + .enable_reg = 0xb004, > > You could be more explicit in the commit text that you're changing the > register offset to the voting register. will update the commit message in next patch. > >> + .enable_mask = BIT(15), Thanks for reviewing. Regards, Alam.