Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7964071rdb; Thu, 4 Jan 2024 13:36:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGU/l8hVwPqfi2JY7bpO0Vbx96r7R5HUSqRLsgDhZlw0Euc4/MZsoJ/Z4IL6Gq3vcOufC67 X-Received: by 2002:a2e:9f41:0:b0:2cc:f6ac:a2db with SMTP id v1-20020a2e9f41000000b002ccf6aca2dbmr308134ljk.196.1704404215699; Thu, 04 Jan 2024 13:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704404215; cv=none; d=google.com; s=arc-20160816; b=y9Jl8jlpoZhCsQ8z0wrRem9W6YkzSuyf9++DqCVo5iSWTDezd2olKdWx1t1lNco3Q2 XSDFLBV5S4yrv5tJv/uLfDDbLw/b9Es5suApf7SUFr1h62gK2B5dyttdwpbdZbbFvG2B WoKrl9HpEx2lBcp2y5l7N6e9nEHDDxaVBePUal9MXknvafxR4xyxCPTfGS/qCmh5iF4v gcBkxwvKqLimyfNmkHkh1yZFLmzleyrEbuxTXCbDLoRp/qCFRcXB/iA69n4I7mNypMa5 7VGz9fuvS+ZGuiJ0UTpQjqap6qNyPWoFoeAgRDme3AKtnot+5j1QI3eaAUvRwUOoY3lB h1tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=Xgf7iUeQRpGO/hjC21A7HUZ6oK+qAHGftfOcZucDlwc=; fh=Vp06PcC/1lk3SXDr6or4rGm4OOqaEymDiwvmo/fmnj0=; b=L2lWNK+hgvMh58ELeYwNo3jLdFUYl0MeU97tbIHfXOyUnrfOGJpL5skjNdkfIfY+9K Ko26+P0IsbQAjUSpDiuKKQVx2loWBHFb8Ur2zynGaKLH+fbI6fmQq1hg+ab5UzyCzTFI CtPnVrvchpt0EO9ZTud8fprsuvb8IuNzcHC2WEAngdPiUyz3L3RND2oG+Dyu1v6ZqHmA SIKpwvbnGkzTKRdq23CRux1+O+JDjCtE5Zn8Y6Tfmf/jiH4/NPRZVI/iVek0VobEwcW2 UMDt2JmbKON1BKS82jJ04q8mFL2H2fnApelI0D9hdPH3X0SuL82yKlrFUN1ZpbLgQDKG tYcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZB32WZeX; spf=pass (google.com: domain of linux-kernel+bounces-17248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t14-20020a056402524e00b0055402a438a6si108433edd.547.2024.01.04.13.36.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 13:36:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZB32WZeX; spf=pass (google.com: domain of linux-kernel+bounces-17248-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 6FD671F234A7 for ; Thu, 4 Jan 2024 21:36:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 673362C84E; Thu, 4 Jan 2024 21:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZB32WZeX" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8330D2C681; Thu, 4 Jan 2024 21:36:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD073C433C7; Thu, 4 Jan 2024 21:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704404204; bh=/gPJhI0luavzDAMUU3piZFqDvBPXXQmqih0y6CbPkDo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ZB32WZeXi9pWrXUs4nFLQOKWQKvgsLCPhg8HTDvMQhFsZ49JD/Jw1deYXZPm3o/SX x52TbzbuJ7w7zaPewansJqg+zHb8lttmaWATUuJ4SzSl2jH0rDh8pyJ0iU5ZL7JpUG vFdiAbo3/Wr0UkClMHKumsYsjy4P6fS5q0ps/1H+5gWzENdb1M7jhPF3lcCu88uGgd +kSOVjghQwtXpWwsXrwqrQtKVeiA5ju118sbwaMmC//4Joihr8xYDaOi0xhWHdOMRH S5Xl1Es0N99dCoAyn/X2I5yqMKsNE+B3EYqNsYzomPekVxXw++Ccp437MMTItRCG3i 3UMzW9jMRxsjA== Message-ID: <988ae72846dc680382f98b63b61a8c32.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240104-sm8150-dfs-support-v1-1-a5eebfdc1b12@quicinc.com> References: <20240104-sm8150-dfs-support-v1-0-a5eebfdc1b12@quicinc.com> <20240104-sm8150-dfs-support-v1-1-a5eebfdc1b12@quicinc.com> Subject: Re: [PATCH 1/3] clk: qcom: gcc-sm8150: Register QUPv3 RCGs for DFS on SM8150 From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Ajit Pandey , Imran Shaik , Jagadeesh Kona , Satya Priya Kakitapalli To: Bjorn Andersson , Conor Dooley , Deepak Katragadda , Konrad Dybcio , Krzysztof Kozlowski , Michael Turquette , Rob Herring , Satya Priya Kakitapalli , Taniya Das , Vinod Koul Date: Thu, 04 Jan 2024 13:36:41 -0800 User-Agent: alot/0.10 Quoting Satya Priya Kakitapalli (2024-01-04 06:23:04) > diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c > index 05d115c52dfe..6d76fd344ddf 100644 > --- a/drivers/clk/qcom/gcc-sm8150.c > +++ b/drivers/clk/qcom/gcc-sm8150.c > @@ -453,19 +453,29 @@ static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s= 0_clk_src[] =3D { > { } > }; > =20 > +static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init =3D { Can these be const? > + .name =3D "gcc_qupv3_wrap0_s0_clk_src", > + .parent_data =3D gcc_parents_0, > + .num_parents =3D ARRAY_SIZE(gcc_parents_0), > + .flags =3D CLK_SET_RATE_PARENT, > + .ops =3D &clk_rcg2_ops, > +}; > + > static struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src =3D { > .cmd_rcgr =3D 0x17148, > .mnd_width =3D 16, > .hid_width =3D 5, > .parent_map =3D gcc_parent_map_0, > .freq_tbl =3D ftbl_gcc_qupv3_wrap0_s0_clk_src, > - .clkr.hw.init =3D &(struct clk_init_data){ > - .name =3D "gcc_qupv3_wrap0_s0_clk_src", [...] > @@ -3786,6 +3850,13 @@ static int gcc_sm8150_probe(struct platform_device= *pdev) > regmap_update_bits(regmap, 0x4d110, 0x3, 0x3); > regmap_update_bits(regmap, 0x71028, 0x3, 0x3); > =20 > + ret =3D qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, > + ARRAY_SIZE(gcc_dfs_clocks)); > + if (ret) { > + dev_err(&pdev->dev, "Failed to register with DFS!\n"); Use=20 return dev_err_probe(...);