From: Peng Fan <peng.fan@oss.nxp.com>
To: Kamlesh Gurudasani <kamlesh@ti.com>
Cc: Lukasz Majewski <lukma@denx.de>,
Sean Anderson <seanga2@gmail.com>, Tom Rini <trini@konsulko.com>,
Peng Fan <peng.fan@nxp.com>, Ye Li <ye.li@nxp.com>,
Alice Guo <alice.guo@nxp.com>,
Maxim Kochetkov <fido_max@inbox.ru>,
d-gole@ti.com, u-boot@lists.denx.de
Subject: Re: [PATCH v4 2/2] clk: scmi: add compatibility for clock version 3.0 and onwards
Date: Fri, 7 Nov 2025 11:39:12 +0800 [thread overview]
Message-ID: <aQ1p4BiM5XpqO3Zg@nxa18884-linux> (raw)
In-Reply-To: <20251104-b4-scmi-v1-v4-2-51f101a6f8c3@ti.com>
On Tue, Nov 04, 2025 at 04:49:31PM +0530, Kamlesh Gurudasani wrote:
>Clock version 3.0 specified in ARM SCMI Platform design document
>v3.2, adds extended_config_val parameter in CLOCK_CONFIG_SET and
>CLOCK_CONFIG_GET. Add support for that.
>
>Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
>---
> drivers/clk/clk_scmi.c | 52 +++++++++++++++++++++++++++++++++++++++-------------
> include/scmi_protocols.h | 6 ++++++
> 2 files changed, 45 insertions(+), 13 deletions(-)
>
>diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c
>index 83ea7bb4286..6d47cc6cd01 100644
>--- a/drivers/clk/clk_scmi.c
>+++ b/drivers/clk/clk_scmi.c
>@@ -131,19 +131,45 @@ static int scmi_clk_get_attibute(struct udevice *dev, int clkid, char **name,
>
> static int scmi_clk_gate(struct clk *clk, int enable)
> {
>- struct scmi_clk_state_in in = {
>- .clock_id = clk_get_id(clk),
>- .attributes = enable,
>- };
>+ struct scmi_clock_priv *priv;
> struct scmi_clk_state_out out;
>- struct scmi_msg msg = SCMI_MSG_IN(SCMI_PROTOCOL_ID_CLOCK,
>- SCMI_CLOCK_CONFIG_SET,
>- in, out);
> int ret;
>
>- ret = devm_scmi_process_msg(clk->dev, &msg);
>- if (ret)
>- return ret;
>+ if (CONFIG_IS_ENABLED(CLK_CCF)) {
>+ /* CCF: version info is in parent device */
>+ priv = dev_get_priv(clk->dev->parent);
This is wrong, please use dev_get_parent_priv after
you rebase with fsl-qoirq/next. There is conflict, I could
not directly apply this patch and change this line at my side.
Thanks,
Peng
next prev parent reply other threads:[~2025-11-07 4:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 11:19 [PATCH v4 0/2] Add compatibility for scmi clock protocol version 3.0 Kamlesh Gurudasani
2025-11-04 11:19 ` [PATCH v4 1/2] clk: scmi: fix set_parent support when CCF is not being used Kamlesh Gurudasani
2025-11-07 3:32 ` Peng Fan
2025-11-07 3:41 ` Peng Fan
2025-11-04 11:19 ` [PATCH v4 2/2] clk: scmi: add compatibility for clock version 3.0 and onwards Kamlesh Gurudasani
2025-11-07 3:39 ` Peng Fan [this message]
2025-11-11 6:34 ` Maxim Kochetkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aQ1p4BiM5XpqO3Zg@nxa18884-linux \
--to=peng.fan@oss.nxp.com \
--cc=alice.guo@nxp.com \
--cc=d-gole@ti.com \
--cc=fido_max@inbox.ru \
--cc=kamlesh@ti.com \
--cc=lukma@denx.de \
--cc=peng.fan@nxp.com \
--cc=seanga2@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox