Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7714998rwp; Tue, 18 Jul 2023 21:59:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIP2+tlf40TwbfuRdbAhPoyMXR595hXzNgMo7HRAviHVLmZBgqZb+mXNDhTDTQVX3yfT+O X-Received: by 2002:a05:6a00:843:b0:67a:52a7:b278 with SMTP id q3-20020a056a00084300b0067a52a7b278mr1492296pfk.9.1689742765134; Tue, 18 Jul 2023 21:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689742765; cv=none; d=google.com; s=arc-20160816; b=xxLZYDm0/pp0bG8RDmDImamX32bK/Lel9F6FhmvMpxXg34J8Y8e4pHcAzzrcSmFPFG ySsyt3jKTB8+yPypFIaO7O+NHnkHgmkGsCdYy4ZkFCtmWbxPPLbCYtPs2UDXonuZO8CP tYgtxZyrW2ESvNh+qzbLym3EmQE1tJe44mwY8r+k/zYMkLI4VjS72K4JGAMWFMucer+q 2sk7h2FNlqa9BRuN4B9lA/z0GtYLc+uq9qYir32/vNIdilJP85U21ox3771tKHWWt9lY 4k59fwSk/C/S+kpFQJNA5+z98ebVDbMCdiv07jaqxBh/WQmdtjXfX5E56Gljlko+EmNn WtIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OyhEVE3L5dsVFLTH5GkrboYijq1DPKtuW2aNR0gg8/o=; fh=NunHP3Flr+cCv8bwW6vlYnwDvVg/939akkf7WUBIuEQ=; b=DCI6vEi1H4JfJhj0LfhmfiLt4ghKLp4+TAyXZX2Df6gKvf44uFUwGpFCkMKhzVWOGY LMxLy+5Kw7TmR63hRaI7LLzQG98DMc/A0i8h9Ii1dmvsf5bPxSVVpJxnR9AZusmKAtsX kGDoyJSt0qVcOHX6+64y1CfhkL/kizskKPjt2y6syskbzdse98/4f6j0WJdfBRISnBjo TRy/71JKNuznsGFf6rlm5izhZ5KgU5j9gc2NJAExsrWCvtG7HGgCeYZ9YwA58cqUV5OJ rbJyzGwtjvO05mHKY1yDXNeEV09bxdfDgwF/vWylebY1p41qieRSOPmeaLJf9fAbNeBw f7IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=brPGHnKy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a63db44000000b00563377d5cd7si2550849pgi.192.2023.07.18.21.59.06; Tue, 18 Jul 2023 21:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=brPGHnKy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbjGSEPz (ORCPT + 99 others); Wed, 19 Jul 2023 00:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbjGSEPo (ORCPT ); Wed, 19 Jul 2023 00:15:44 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E649D1735; Tue, 18 Jul 2023 21:15:40 -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 36J3EjoF000318; Wed, 19 Jul 2023 04:15:37 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-transfer-encoding : content-type; s=qcppdkim1; bh=OyhEVE3L5dsVFLTH5GkrboYijq1DPKtuW2aNR0gg8/o=; b=brPGHnKy0pWj/G8VTXL7pevCGmGQLU8z6bw8vsufvYkdMMCiPBruj8FdmXF8yGnALVBZ pXLzPqHpxtVA3c2H4FQzLNxa/L12kBaJlw0osWC4w7uH8sJsnVVrxXrA+G7e3UD0A4/L G1n357FR+LLF77sq4KKYE6UQV2rd7QjmhdN5PIHyNT0S+5yL6C2NfIZmeskAdvmfQHZb BLYS4Z//PB81nAo+egUcFn4TlcWr9GSDDMIxYMVmU4GvA14obORYJxeng0TV70mhYkuq YXYETEYtsdCkjqECIVwISeiWx3LYCVbhi/6tfgOMpcAA/ZoD5aPWdIPGXdd/xeZOYQ/Q kQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rx7rng4fs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 04:15:36 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36J4FZss018193 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 04:15:35 GMT Received: from hu-imrashai-hyd.qualcomm.com (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.1118.30; Tue, 18 Jul 2023 21:15:30 -0700 From: Imran Shaik To: Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Bjorn Andersson , Taniya Das , Imran Shaik , "Melody Olvera" , Dmitry Baryshkov , , , , , Jagadeesh Kona , Satya Priya Kakitapalli , Ajit Pandey Subject: [PATCH V4 3/7] clk: qcom: gcc-qdu1000: Fix clkref clocks handling Date: Wed, 19 Jul 2023 09:44:46 +0530 Message-ID: <20230719041450.737929-4-quic_imrashai@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230719041450.737929-1-quic_imrashai@quicinc.com> References: <20230719041450.737929-1-quic_imrashai@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: 8Ah-QRBikWo5hhx6_97aJIhO_PaXuvVH X-Proofpoint-ORIG-GUID: 8Ah-QRBikWo5hhx6_97aJIhO_PaXuvVH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-19_01,2023-07-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307190038 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the gcc clkref clock ops and update the halt_check as per the latest hw version of QDU1000 and QRU1000 SoCs. Fixes: 1c9efb0bc040 ("clk: qcom: Add QDU1000 and QRU1000 GCC support") Co-developed-by: Taniya Das Signed-off-by: Taniya Das Signed-off-by: Imran Shaik --- Changes since v3: - None Changes since v2: - Split the patch as per the review comments - Newly added drivers/clk/qcom/gcc-qdu1000.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/clk/qcom/gcc-qdu1000.c b/drivers/clk/qcom/gcc-qdu1000.c index c00d26a3e6df..8df7b7983968 100644 --- a/drivers/clk/qcom/gcc-qdu1000.c +++ b/drivers/clk/qcom/gcc-qdu1000.c @@ -1447,14 +1447,13 @@ static struct clk_branch gcc_pcie_0_cfg_ahb_clk = { static struct clk_branch gcc_pcie_0_clkref_en = { .halt_reg = 0x9c004, - .halt_bit = 31, - .halt_check = BRANCH_HALT_ENABLE, + .halt_check = BRANCH_HALT, .clkr = { .enable_reg = 0x9c004, .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { .name = "gcc_pcie_0_clkref_en", - .ops = &clk_branch_ops, + .ops = &clk_branch2_ops, }, }, }; @@ -2274,14 +2273,13 @@ static struct clk_branch gcc_tsc_etu_clk = { static struct clk_branch gcc_usb2_clkref_en = { .halt_reg = 0x9c008, - .halt_bit = 31, - .halt_check = BRANCH_HALT_ENABLE, + .halt_check = BRANCH_HALT, .clkr = { .enable_reg = 0x9c008, .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { .name = "gcc_usb2_clkref_en", - .ops = &clk_branch_ops, + .ops = &clk_branch2_ops, }, }, }; -- 2.25.1