From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, Shawn Guo <shawn.guo@linaro.org>
Subject: Re: [PATCH RFT 01/20] clk: qcom: smd-rpm: Add .is_enabled hook
Date: Mon, 6 Mar 2023 02:27:07 +0200 [thread overview]
Message-ID: <ab663641-8bef-b9c6-27fa-0097c564ca36@linaro.org> (raw)
In-Reply-To: <CAA8EJpq4tkOKOkaCPwr6nggzJQm3ubRAVgEF1pK38wzmmXizRA@mail.gmail.com>
On 06/03/2023 02:21, Dmitry Baryshkov wrote:
> On Sat, 4 Mar 2023 at 15:27, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>>
>> From: Shawn Guo <shawn.guo@linaro.org>
>>
>> The RPM clock enabling state can be found with 'enabled' in struct
>> clk_smd_rpm. Add .is_enabled hook so that clk_summary in debugfs can
>> show a correct enabling state for RPM clocks.
>
> There is a small problem with this patch: now if the bootloader leaves
> a clock enabled for some reason and there are no Linux users for that
> clock, clk_disable_unused_subtree() will consider this clock disabled
> and will not disable the clock on its own.
> And at this stage of smd-rpm platforms support I think we better off
> finding missing clock consumers rather than depending on the
> bootloader for some of the setup.
Argh. And then I understood that without the patch clk_core_is_enabled
will shortcut to core->enable_count, which also means that the clock
will be skipped.
But now I have another question: since r->enabled follows
core->enabled_count, can we get rid of r->enabled and switch to
core->enable_count? This might mean adding clk_software_is_enabled()
function for your patch.
--
With best wishes
Dmitry
next prev parent reply other threads:[~2023-03-06 0:27 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 13:27 [PATCH RFT 00/20] SMD RPMCC sleep preparations Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 01/20] clk: qcom: smd-rpm: Add .is_enabled hook Konrad Dybcio
2023-03-06 0:21 ` Dmitry Baryshkov
2023-03-06 0:27 ` Dmitry Baryshkov [this message]
2023-03-04 13:27 ` [PATCH RFT 02/20] clk: qcom: smd-rpm: Add .is_prepared hook Konrad Dybcio
2023-03-06 1:05 ` Dmitry Baryshkov
2023-03-04 13:27 ` [PATCH RFT 03/20] clk: qcom: smd-rpm: Add support for keepalive votes Konrad Dybcio
2023-03-06 1:21 ` Dmitry Baryshkov
2023-03-06 11:28 ` Konrad Dybcio
2023-03-06 14:04 ` Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 04/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6375 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 05/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8996 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 06/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8909 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 07/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8916 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 08/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8936 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 09/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8974 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 10/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8976 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 11/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8992 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 12/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8994 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 13/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8998 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 14/20] clk: qcom: smd-rpm: Add keepalive_clks for SDM660 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 15/20] clk: qcom: smd-rpm: Add keepalive_clks for MDM9607 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 16/20] clk: qcom: smd-rpm: Add keepalive_clks for MSM8953 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 17/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6125 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 18/20] clk: qcom: smd-rpm: Add keepalive_clks for SM6115 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 19/20] clk: qcom: smd-rpm: Add keepalive_clks for QCM2290 Konrad Dybcio
2023-03-04 13:27 ` [PATCH RFT 20/20] clk: qcom: smd-rpm: Add keepalive_clks for QCS404 Konrad Dybcio
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=ab663641-8bef-b9c6-27fa-0097c564ca36@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=shawn.guo@linaro.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®