Message ID | 20221115152956.21677-1-quic_shazhuss@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2795148wru; Tue, 15 Nov 2022 07:34:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4QjTtRbiALgMz9Fmj9Cg0zfZs994teIk/3nbiPRd8Je8kVia4TPMCljPhoak7ZYcVEwaRk X-Received: by 2002:a17:902:9047:b0:187:2b22:e2af with SMTP id w7-20020a170902904700b001872b22e2afmr4638604plz.0.1668526497788; Tue, 15 Nov 2022 07:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668526497; cv=none; d=google.com; s=arc-20160816; b=NyMI+Uapaf+6HWncBaZ+zYgYc4Vie99uWePIg3vXcLXwJxHE14ymk0sLBWXn+Lqlvs MQexQnhb0A/wVAGL4UFYZJ6C+pyVhXa/KbKsBDBKICwsuwaNT0z/AD4e/0dlBXk+YVPI g/v+RZAOA5VZQ7PaDfv3zhrCod/VrzzOHUFhZlna0zYvkrJ9V4+Rdrla5xVV9s08/pDY ymU+moZdByE1YdQDUSOXtO53vCpq++b32JvnAD+7OOKLstYzR4seSAi06U1lfVf8nwXv R1I+D60V/XjDo6UTc+GXRfGAz3q9YBAfzl75aQ3P8WhB6uyWm3Xg0gBuEhh4Dz9eQcpi iKNw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=x2ko2X3xrP6OAwA31iyaWLsAmnHHrOj2dnutRGO0xvQ=; b=aVgmj6X2OelJ1KscQn36t6ZNmau1NoCV/w4lN3SlhMRHlg2g2IZC8D1ULV1ebCnJoP 1rFQYJkcsCOJyM9phNeBrf+cSCDz6M6fg01RbO73FKLuukH90TesMjhDHlBoOz7OqNby ytPzAmmc9IUj0n9nUwRafbfYZGovvphHr6EhjLUdyMPfbooOeDqLD1TBVgdHNi+hi41C h70lSXRCxLNm6kB92zFLBnggCGlCvFdJ7DVJy5tCyZTMlJnhJ5k3rtN7xnWATOuKwN07 y3m8inbxUuYZp3SdVPlq3K7krT9oQhiqRcTrRQAqOTtVsxzzeTwpUSiUIJjsrc2EqqRE Qa9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Nr5zEzlP; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bh5-20020a170902a98500b001884ba97a0fsi11061129plb.567.2022.11.15.07.34.41; Tue, 15 Nov 2022 07:34:57 -0800 (PST) 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=Nr5zEzlP; 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 S238289AbiKOPbt (ORCPT <rfc822;maxim.cournoyer@gmail.com> + 99 others); Tue, 15 Nov 2022 10:31:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiKOPbO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 15 Nov 2022 10:31:14 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1432E680; Tue, 15 Nov 2022 07:30:45 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AFFTfD6026417; Tue, 15 Nov 2022 15:30:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=x2ko2X3xrP6OAwA31iyaWLsAmnHHrOj2dnutRGO0xvQ=; b=Nr5zEzlPDVb+IRIZbccqRex2kZFWRQr1VdFySMNYNAAE2dCOqO3XWm8horfcPohCaUrv kGKSWHabvmxLHpZ8ikLiZ+dxhbJ442bv9aLLITbXoLEIeFpqNRulmDhrnJRx+KAEzSCR jAt097u+8HCqlNpZa/FCgp3lK+twGLtZ9S5w6Odwnh4cRsb7fFRxsRTioFO3aCTN2fLd CdJryk4TrdoZd98+bczHFOE3Oz5ipNxo88iJsmyMMZpUoKXhXSoPJcvnH7mHvIfmMLXH Cw8RcsLGaJEfpt36BsZ88bFNMXDaDV55+emghW2M3Ju3HBTypQan+lmC8i0uarCu8IXz QA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kv51htdvt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 15:30:40 +0000 Received: from pps.filterd (NALASPPMTA02.qualcomm.com [127.0.0.1]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 2AFFUebo015670; Tue, 15 Nov 2022 15:30:40 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 3kutnem5bh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 15:30:40 +0000 Received: from NALASPPMTA02.qualcomm.com (NALASPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2AFFUeYG015662; Tue, 15 Nov 2022 15:30:40 GMT Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTPS id 2AFFUdDB015661 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 15:30:40 +0000 Received: from shazhuss-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Tue, 15 Nov 2022 07:30:35 -0800 From: Shazad Hussain <quic_shazhuss@quicinc.com> To: <andersson@kernel.org>, <johan@kernel.org> CC: <sboyd@kernel.org>, <bmasney@redhat.com>, <agross@kernel.org>, <mturquette@baylibre.com>, <ahalaney@redhat.com>, Shazad Hussain <quic_shazhuss@quicinc.com>, Johan Hovold <johan+linaro@kernel.org>, "Konrad Dybcio" <konrad.dybcio@linaro.org>, Vinod Koul <vkoul@kernel.org>, <linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v3] clk: qcom: gcc-sc8280xp: add cxo as parent for three ufs ref clks Date: Tue, 15 Nov 2022 20:59:56 +0530 Message-ID: <20221115152956.21677-1-quic_shazhuss@quicinc.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: I6FDNuKTZ3SOcpP610kka_oyCnQj2kv9 X-Proofpoint-GUID: I6FDNuKTZ3SOcpP610kka_oyCnQj2kv9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-15_08,2022-11-15_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 spamscore=0 clxscore=1011 impostorscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211150104 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_NONE, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749576840739036752?= X-GMAIL-MSGID: =?utf-8?q?1749576840739036752?= |
Series |
[v3] clk: qcom: gcc-sc8280xp: add cxo as parent for three ufs ref clks
|
|
Commit Message
Shazad Hussain
Nov. 15, 2022, 3:29 p.m. UTC
The three UFS reference clocks, gcc_ufs_ref_clkref_clk for external UFS devices, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk for two PHYs are all sourced from CXO. Added parent_data for all three reference clocks described above to reflect that all three clocks are sourced from CXO to have valid frequency for the ref clock needed by UFS controller driver. Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%2FW@hovoldconsulting.com/ Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com> Tested-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Tested-by: Andrew Halaney <ahalaney@redhat.com> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Reviewed-by: Reviewed-by: Brian Masney <bmasney@redhat.com> --- Changes since v2: - Tweaked commit message and added R-b T-b from v2 v2 of this patch can be found at https://lore.kernel.org/all/20221115102217.6381-1-quic_shazhuss@quicinc.com/ v1 of this patch can be found at https://lore.kernel.org/all/20221030142333.31019-1-quic_shazhuss@quicinc.com/ used below patches for verification on next-20221114 https://lore.kernel.org/lkml/20221104092045.17410-2-johan+linaro@kernel.org/ https://lore.kernel.org/lkml/20221104092045.17410-3-johan+linaro@kernel.org/ https://lore.kernel.org/lkml/20221111113732.461881-1-thierry.reding@gmail.com/ drivers/clk/qcom/gcc-sc8280xp.c | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On Tue, Nov 15, 2022 at 08:59:56PM +0530, Shazad Hussain wrote: > The three UFS reference clocks, gcc_ufs_ref_clkref_clk for external > UFS devices, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk for > two PHYs are all sourced from CXO. > > Added parent_data for all three reference clocks described above to > reflect that all three clocks are sourced from CXO to have valid > frequency for the ref clock needed by UFS controller driver. > > Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") > Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%2FW@hovoldconsulting.com/ > Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com> > Tested-by: Johan Hovold <johan+linaro@kernel.org> > Reviewed-by: Johan Hovold <johan+linaro@kernel.org> > Tested-by: Andrew Halaney <ahalaney@redhat.com> > Reviewed-by: Andrew Halaney <ahalaney@redhat.com> > Reviewed-by: Reviewed-by: Brian Masney <bmasney@redhat.com> Really-really-reviewed-by? ;) Reviewed-by: Bjorn Andersson <andersson@kernel.org> @Stephen, could you please pick this for clk-fixes? Thanks, Bjorn > --- > Changes since v2: > - Tweaked commit message and added R-b T-b from v2 > > v2 of this patch can be found at > https://lore.kernel.org/all/20221115102217.6381-1-quic_shazhuss@quicinc.com/ > > v1 of this patch can be found at > https://lore.kernel.org/all/20221030142333.31019-1-quic_shazhuss@quicinc.com/ > > used below patches for verification on next-20221114 > https://lore.kernel.org/lkml/20221104092045.17410-2-johan+linaro@kernel.org/ > https://lore.kernel.org/lkml/20221104092045.17410-3-johan+linaro@kernel.org/ > https://lore.kernel.org/lkml/20221111113732.461881-1-thierry.reding@gmail.com/ > > drivers/clk/qcom/gcc-sc8280xp.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c > index a18ed88f3b82..b3198784e1c3 100644 > --- a/drivers/clk/qcom/gcc-sc8280xp.c > +++ b/drivers/clk/qcom/gcc-sc8280xp.c > @@ -5364,6 +5364,8 @@ static struct clk_branch gcc_ufs_1_card_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_1_card_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, > @@ -5432,6 +5434,8 @@ static struct clk_branch gcc_ufs_card_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_card_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, > @@ -5848,6 +5852,8 @@ static struct clk_branch gcc_ufs_ref_clkref_clk = { > .enable_mask = BIT(0), > .hw.init = &(const struct clk_init_data) { > .name = "gcc_ufs_ref_clkref_clk", > + .parent_data = &gcc_parent_data_tcxo, > + .num_parents = 1, > .ops = &clk_branch2_ops, > }, > }, > -- > 2.38.0 >
On 11/15/2022 10:43 PM, Bjorn Andersson wrote: > On Tue, Nov 15, 2022 at 08:59:56PM +0530, Shazad Hussain wrote: >> The three UFS reference clocks, gcc_ufs_ref_clkref_clk for external >> UFS devices, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk for >> two PHYs are all sourced from CXO. >> >> Added parent_data for all three reference clocks described above to >> reflect that all three clocks are sourced from CXO to have valid >> frequency for the ref clock needed by UFS controller driver. >> >> Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") >> Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%2FW@hovoldconsulting.com/ >> Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com> >> Tested-by: Johan Hovold <johan+linaro@kernel.org> >> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> >> Tested-by: Andrew Halaney <ahalaney@redhat.com> >> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> >> Reviewed-by: Reviewed-by: Brian Masney <bmasney@redhat.com> > > Really-really-reviewed-by? > My bad, thanks for pointing it Bjorn :) > > Reviewed-by: Bjorn Andersson <andersson@kernel.org> > > > @Stephen, could you please pick this for clk-fixes? > > Thanks, > Bjorn > >> --- >> Changes since v2: >> - Tweaked commit message and added R-b T-b from v2 >> >> v2 of this patch can be found at >> https://lore.kernel.org/all/20221115102217.6381-1-quic_shazhuss@quicinc.com/ >> >> v1 of this patch can be found at >> https://lore.kernel.org/all/20221030142333.31019-1-quic_shazhuss@quicinc.com/ >> >> used below patches for verification on next-20221114 >> https://lore.kernel.org/lkml/20221104092045.17410-2-johan+linaro@kernel.org/ >> https://lore.kernel.org/lkml/20221104092045.17410-3-johan+linaro@kernel.org/ >> https://lore.kernel.org/lkml/20221111113732.461881-1-thierry.reding@gmail.com/ >> >> drivers/clk/qcom/gcc-sc8280xp.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c >> index a18ed88f3b82..b3198784e1c3 100644 >> --- a/drivers/clk/qcom/gcc-sc8280xp.c >> +++ b/drivers/clk/qcom/gcc-sc8280xp.c >> @@ -5364,6 +5364,8 @@ static struct clk_branch gcc_ufs_1_card_clkref_clk = { >> .enable_mask = BIT(0), >> .hw.init = &(const struct clk_init_data) { >> .name = "gcc_ufs_1_card_clkref_clk", >> + .parent_data = &gcc_parent_data_tcxo, >> + .num_parents = 1, >> .ops = &clk_branch2_ops, >> }, >> }, >> @@ -5432,6 +5434,8 @@ static struct clk_branch gcc_ufs_card_clkref_clk = { >> .enable_mask = BIT(0), >> .hw.init = &(const struct clk_init_data) { >> .name = "gcc_ufs_card_clkref_clk", >> + .parent_data = &gcc_parent_data_tcxo, >> + .num_parents = 1, >> .ops = &clk_branch2_ops, >> }, >> }, >> @@ -5848,6 +5852,8 @@ static struct clk_branch gcc_ufs_ref_clkref_clk = { >> .enable_mask = BIT(0), >> .hw.init = &(const struct clk_init_data) { >> .name = "gcc_ufs_ref_clkref_clk", >> + .parent_data = &gcc_parent_data_tcxo, >> + .num_parents = 1, >> .ops = &clk_branch2_ops, >> }, >> }, >> -- >> 2.38.0 >>
Quoting Shazad Hussain (2022-11-15 07:29:56) > The three UFS reference clocks, gcc_ufs_ref_clkref_clk for external > UFS devices, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk for > two PHYs are all sourced from CXO. > > Added parent_data for all three reference clocks described above to > reflect that all three clocks are sourced from CXO to have valid > frequency for the ref clock needed by UFS controller driver. > > Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") > Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%2FW@hovoldconsulting.com/ > Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com> > Tested-by: Johan Hovold <johan+linaro@kernel.org> > Reviewed-by: Johan Hovold <johan+linaro@kernel.org> > Tested-by: Andrew Halaney <ahalaney@redhat.com> > Reviewed-by: Andrew Halaney <ahalaney@redhat.com> > Reviewed-by: Reviewed-by: Brian Masney <bmasney@redhat.com> > --- Fixed the double Rb Applied to clk-fixes
diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index a18ed88f3b82..b3198784e1c3 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -5364,6 +5364,8 @@ static struct clk_branch gcc_ufs_1_card_clkref_clk = { .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { .name = "gcc_ufs_1_card_clkref_clk", + .parent_data = &gcc_parent_data_tcxo, + .num_parents = 1, .ops = &clk_branch2_ops, }, }, @@ -5432,6 +5434,8 @@ static struct clk_branch gcc_ufs_card_clkref_clk = { .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { .name = "gcc_ufs_card_clkref_clk", + .parent_data = &gcc_parent_data_tcxo, + .num_parents = 1, .ops = &clk_branch2_ops, }, }, @@ -5848,6 +5852,8 @@ static struct clk_branch gcc_ufs_ref_clkref_clk = { .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { .name = "gcc_ufs_ref_clkref_clk", + .parent_data = &gcc_parent_data_tcxo, + .num_parents = 1, .ops = &clk_branch2_ops, }, },