Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp366021lqp; Wed, 12 Jun 2024 04:11:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwfrf2G4pXGFBo2oFSC71L9T2rFRomT+Cb5lwR5hfaPEj1SwomW6IQCn8e0BI4j0+h39YKSq+j9o7iu9FTRMzq4ntJGzf8TgjWzUTJsA== X-Google-Smtp-Source: AGHT+IHSrR3KY1IXMQRkpdWbjkzaQPGS5xILipK9/5HDOr3/A0YR6VTTnQaWqvfn7vNtR3wrLoX6 X-Received: by 2002:a05:6a21:3381:b0:1b5:cc1f:38d4 with SMTP id adf61e73a8af0-1b86bdd2ff3mr7818379637.17.1718190689098; Wed, 12 Jun 2024 04:11:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718190689; cv=pass; d=google.com; s=arc-20160816; b=HRKv30ogzjt4llvwidspnNzHFekfLuxcHMjip8qmRlq+iyCYruN4iCpybFQP8sEkCR nS8W29IMSjrD7++bGz57crs2P3JXPlG/zeIlvdTvN9XBtd7CTccjDh1jNuILkiAgd0XE N2bmcvbZlb2WEyYwpzrwWUmPE5YXD2X20OFzxhRVbTt0egc+/aOo3PWfhPLFJGE1Nh62 5feAthnxSnaA18hitONlbDjJECfuxrSxGbS0nS9osSFv/g9vp4wGHPBXt3CSkV2a2Faa 4nIkA8wW3NutQNvyrvNvT2OrWPO//29nWv1Fu+FMKK23GICsRZfYBlrFG6M/4bEOe3r6 RvBw== 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=kuR4Hc9pfNBLg66dWqd7T6F+itXs7IdkV399NEba0ho=; fh=CiUN9c9gmdTPUj1pUVfBJVJHIHgmFU9s0Gv45rgKm08=; b=ucEbMjDkYST0D2sgvYi+OcPhPD3LbQToEFCY66qPkWNYd2o8dxLX479brOsIZj6Fnr 0iREQ/nEVqJOvB1a8Oisjbt/0E18kduRvTkmmBTRVKf6yJ7Y9WG0tsxm8ZnN26Lad3yT qphbbHeALxOZBkKcBZ5+YLiIl8ddZ0+XduswDmuh+vbLe4NOrhGPeiOGi13ZyBPhJnB1 Q5OMlroniNP4mcrbzbd9aKrjB19p/kyF20w+adlVPEz2SAPbqDHZyLGVd6lDZ85zQdyt uuiVzSdTPcZcbI7mWNBP/lBGf/GyYS8r7svwkmp+dlq5YPh7edtpVkQbsUhL8EZ4us7C EKdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QA3Btef4; 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-211398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2a84f17bsi11261753a12.832.2024.06.12.04.11.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 04:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211398-linux.lists.archive=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=QA3Btef4; 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-211398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211398-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D4B8CB22169 for ; Wed, 12 Jun 2024 11:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6902B17082A; Wed, 12 Jun 2024 11:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="QA3Btef4" 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 2394216FF48; Wed, 12 Jun 2024 11:09:04 +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=1718190546; cv=none; b=GOy8daYk6r2xvzX6KWwgt8aBwuGtGowOH4J+A8d5ooou8FNSFGUVDuld1JgSk7t5iInz5kWS8XXrqATdsZS/uuDyDVNYcWmdloKQMhyB2DXs+xb2btrVlks2HdvDFPSyJKbevFEOB0JJqxCLaB7L/N8S1kuapxGvEfdpldBoUww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718190546; c=relaxed/simple; bh=N0D5bDjl36upHaP9w52ql3oEOeKMlWVAqEqNCfvSiJE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=EsV5vK8uMnh8FW/YKtwurMYqO2hZ/06osa3TycEWM2LWnGZ334OUpaHTvjsJ/znBiT5l+R0nRC+f8esb4BBO218TjMh+zR+V3CqEOHsKBh+xyYIhQCy2gGpqWcPA676Ac6nVPFnla4yBjx4cUfQrjO0StWSTBkPGPh0Bnc1zbBE= 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=QA3Btef4; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45C4YXQS002230; Wed, 12 Jun 2024 11:09:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kuR4Hc9pfNBLg66dWqd7T6F+itXs7IdkV399NEba0ho=; b=QA3Btef4jxUR1NnN 3Pv7KBs/docvW3+e1WEdl8QPxBfpk0RCGlYfKx/LalAiUgCWC/+2gB357+r4ns0J 7+rvJrvTjA+omFJB67IxdlNihOK74iUoJDJm/pE559X3A3COVwQC3VzPCxsaW88J trS/E/bm0Ex6NARKcojQEIqIJZF/P96eu8C4pblyFUw5Q86h5/brsOM2GyuvmO5H ZasbkJE0yhHdr6Gwr1HB9r458/h+ilSQRmHVlu3qUIJReAJnkmMzaxLWI00gOJdh k2WV8PygNEHgATypF7Rv00+1jVCn7zwfayvx5YL6wjx1M32C74EIx84zpwUgyECv +OZBJg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yq4s08vxu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 11:09:01 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 45CB90Tt025968 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jun 2024 11:09:00 GMT Received: from hu-tdas-hyd.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.1544.9; Wed, 12 Jun 2024 04:08:56 -0700 From: Taniya Das Date: Wed, 12 Jun 2024 16:38:25 +0530 Subject: [PATCH v2 5/6] clk: qcom: gpucc-sa8775p: Park RCG's clk source at XO during disable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20240612-sa8775p-v2-gcc-gpucc-fixes-v2-5-adcc756a23df@quicinc.com> References: <20240612-sa8775p-v2-gcc-gpucc-fixes-v2-0-adcc756a23df@quicinc.com> In-Reply-To: <20240612-sa8775p-v2-gcc-gpucc-fixes-v2-0-adcc756a23df@quicinc.com> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio , Bartosz Golaszewski , Shazad Hussain CC: , , , , , Taniya Das X-Mailer: b4 0.14-dev-f7c49 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: vaK2n3q3qpDakCaY5N70CX-IvDgvwjPU X-Proofpoint-ORIG-GUID: vaK2n3q3qpDakCaY5N70CX-IvDgvwjPU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-12_06,2024-06-12_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 adultscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 mlxlogscore=627 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406120081 The RCG's clk src has to be parked at XO while disabling as per the HW recommendation, hence use clk_rcg2_shared_ops to achieve the same. Also gpu_cc_cb_clk is recommended to be kept always ON, hence use clk_branch2_aon_ops to keep the clock always ON. Fixes: 0afa16afc36d ("clk: qcom: add the GPUCC driver for sa8775p") Signed-off-by: Taniya Das --- drivers/clk/qcom/gpucc-sa8775p.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/qcom/gpucc-sa8775p.c b/drivers/clk/qcom/gpucc-sa8775p.c index f965babf4330..1f7a02a7503d 100644 --- a/drivers/clk/qcom/gpucc-sa8775p.c +++ b/drivers/clk/qcom/gpucc-sa8775p.c @@ -161,7 +161,7 @@ static struct clk_rcg2 gpu_cc_ff_clk_src = { .name = "gpu_cc_ff_clk_src", .parent_data = gpu_cc_parent_data_0, .num_parents = ARRAY_SIZE(gpu_cc_parent_data_0), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -181,7 +181,7 @@ static struct clk_rcg2 gpu_cc_gmu_clk_src = { .parent_data = gpu_cc_parent_data_1, .num_parents = ARRAY_SIZE(gpu_cc_parent_data_1), .flags = CLK_SET_RATE_PARENT, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -200,7 +200,7 @@ static struct clk_rcg2 gpu_cc_hub_clk_src = { .name = "gpu_cc_hub_clk_src", .parent_data = gpu_cc_parent_data_2, .num_parents = ARRAY_SIZE(gpu_cc_parent_data_2), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_shared_ops, }, }; @@ -294,7 +294,7 @@ static struct clk_branch gpu_cc_cb_clk = { .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data){ .name = "gpu_cc_cb_clk", - .ops = &clk_branch2_ops, + .ops = &clk_branch2_aon_ops, }, }, }; -- 2.45.2