From: Georgi Djakov <georgi.djakov@linaro.org>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 1/2] clk: qcom: Add support for RPM Clocks
Date: Thu, 03 Sep 2015 18:40:34 +0300 [thread overview]
Message-ID: <55E869F2.5020008@linaro.org> (raw)
In-Reply-To: <20150902203154.GA15099@codeaurora.org>
Hi Stephen,
On 09/02/2015 11:31 PM, Stephen Boyd wrote:
> On 08/03, Georgi Djakov wrote:
>> diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
>> new file mode 100644
>> index 000000000000..e564673ec3a5
>> --- /dev/null
>> +++ b/drivers/clk/qcom/clk-smd-rpm.c
[..]
>> +static int clk_smd_rpm_set_rate(struct clk_hw *hw, unsigned long rate,
>> + unsigned long parent_rate)
>> +{
>> + struct clk_smd_rpm *r = to_clk_smd_rpm(hw);
>> + int ret = 0;
>> +
>> + if (r->enabled) {
>> + u32 value;
>> + struct clk_smd_rpm *peer = r->peer;
>> +
>> + /* Take peer clock's rate into account only if it's enabled. */
>> + if (peer->enabled)
>
> This peer stuff almost doesn't even matter because we're only
> sending active set requests. Why can't this code be updated to
> send both active and sleep set requests? The sleep set stuff
> won't be cached, etc., but I don't see a problem in doing both.
> Otherwise we should drop all the peer stuff until we introduce
> active only clocks.
Initially I tried sending both active and sleep sets, but as they are
not cached like in downstream (yet) i got hangs during boot. Disabling
caching in downstream kernel also caused the same hangs, so i left
this out for now. Will try debugging it further.
Will fix the rest according to your comments. Thank you!
BR,
Georgi
next prev parent reply other threads:[~2015-09-03 15:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 16:48 [PATCH v2 0/2] Add initial support for RPM clocks Georgi Djakov
2015-08-03 16:48 ` [PATCH v2 1/2] clk: qcom: Add support for RPM Clocks Georgi Djakov
2015-09-02 20:31 ` Stephen Boyd
2015-09-03 15:40 ` Georgi Djakov [this message]
2015-09-03 17:22 ` Bjorn Andersson
2015-09-03 17:22 ` Bjorn Andersson
2015-09-03 17:39 ` Stephen Boyd
2015-08-03 16:48 ` [PATCH v2 2/2] clk: qcom: Add MSM8916 RPM clock driver Georgi Djakov
2015-09-02 23:55 ` Stephen Boyd
2015-09-02 16:54 ` [PATCH v2 0/2] Add initial support for RPM clocks Georgi Djakov
2015-09-21 4:33 ` Bjorn Andersson
2015-09-21 4:33 ` Bjorn Andersson
2015-09-22 22:46 ` Georgi Djakov
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=55E869F2.5020008@linaro.org \
--to=georgi.djakov@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@codeaurora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.