From: Viresh Kumar <viresh.kumar@linaro.org>
To: chuan.liu@amlogic.com
Cc: Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] opp: Allow multiple clocks for primary clock operations
Date: Tue, 1 Dec 2026 15:42:47 +0530 [thread overview]
Message-ID: <aw6dn9ogupAM9n8P@vireshk-B250M-D3H> (raw)
In-Reply-To: <20261201-opp_core-v1-1-c43c8f010b5f@amlogic.com>
On 01-12-26, 17:34, Chuan Liu via B4 Relay wrote:
> @@ -2376,24 +2376,24 @@ static int _opp_set_clknames(struct opp_table *opp_table, struct device *dev,
> opp_table->clk_count = count;
> opp_table->config_clks = config_clks;
>
> + /*
> + * We could have just dropped the "clk" field and used "clks"
> + * everywhere. Instead we kept the "clk" field around for
> + * following reasons:
> + *
> + * - avoiding clks[0] everywhere else.
> + * - not running single clk helpers for multiple clk usecase by
> + * mistake.
> + *
> + * Since some OPP helpers still rely on the primary clock, update
> + * the "clk" pointer to the first clock.
> + */
> + opp_table->clk = opp_table->clks[0];
> +
> /* Set generic single clk set here */
> if (count == 1) {
> if (!opp_table->config_clks)
> opp_table->config_clks = _opp_config_clk_single;
> -
> - /*
> - * We could have just dropped the "clk" field and used "clks"
> - * everywhere. Instead we kept the "clk" field around for
> - * following reasons:
> - *
> - * - avoiding clks[0] everywhere else.
> - * - not running single clk helpers for multiple clk usecase by
> - * mistake.
> - *
> - * Since this is single-clk case, just update the clk pointer
> - * too.
> - */
> - opp_table->clk = opp_table->clks[0];
Why is this change required ?
--
viresh
next prev parent reply other threads:[~2026-12-01 10:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 9:34 Chuan Liu via B4 Relay
2026-12-01 10:12 ` Viresh Kumar [this message]
2026-12-01 13:01 ` Chuan Liu
2026-12-01 13:50 ` Zhongqiu Han
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=aw6dn9ogupAM9n8P@vireshk-B250M-D3H \
--to=viresh.kumar@linaro.org \
--cc=chuan.liu@amlogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nm@ti.com \
--cc=sboyd@kernel.org \
--cc=vireshk@kernel.org \
/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
all inboxes | Powered by JetHome®